Skip to content

Commit

Permalink
Clean project
Browse files Browse the repository at this point in the history
  • Loading branch information
StephaneBg committed Sep 3, 2014
1 parent 2d1c0d4 commit 49653ec
Show file tree
Hide file tree
Showing 19 changed files with 40 additions and 144 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@
/.idea/workspace.xml
.DS_Store
/build
*.iml
.idea
10 changes: 0 additions & 10 deletions .idea/libraries/appcompat_v7_19_1_0.xml

This file was deleted.

11 changes: 0 additions & 11 deletions .idea/libraries/support_v4_19_1_0.xml

This file was deleted.

10 changes: 0 additions & 10 deletions .idea/modules.xml

This file was deleted.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

A small library replicating the new dialogs in android L.

!["Screenshot 1"](https://github.com/lewisjdeane/L-Dialogs/raw/master/app/src/main/res/screenshots/banner.jpg)
!["Screenshot 1"](https://github.com/lewisjdeane/L-Dialogs/raw/master/screenshots/banner.jpg)

* * *

Expand Down Expand Up @@ -67,7 +67,7 @@ To handle the button clicks you can use the following code:
customDialog.setClickListener(new CustomDialog.ClickListener() {
@Override
public void onConfirmClick() {

}

@Override
Expand Down
88 changes: 0 additions & 88 deletions app/app.iml

This file was deleted.

Binary file removed app/src/main/res/drawable-hdpi/ic_launcher.png
Binary file not shown.
Binary file removed app/src/main/res/drawable-mdpi/ic_launcher.png
Binary file not shown.
Binary file removed app/src/main/res/drawable-xhdpi/ic_launcher.png
Binary file not shown.
Binary file removed app/src/main/res/drawable-xxhdpi/ic_launcher.png
Binary file not shown.
38 changes: 26 additions & 12 deletions app/src/main/res/layout/dialog_custom.xml
Original file line number Diff line number Diff line change
@@ -1,21 +1,24 @@
<?xml version="1.0" encoding="utf-8"?>

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/transparent"
android:orientation="vertical">

<TextView
android:id="@+id/dialog_custom_title"
android:layout_width="fill_parent"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingLeft="24dp"
android:paddingRight="24dp"
android:paddingTop="24dp"
android:text="Title"
tools:text="Title"
android:textSize="22sp"
android:visibility="gone"/>
android:visibility="gone"
tools:visibility="visible"/>

<TextView
android:id="@+id/dialog_custom_content"
Expand All @@ -24,9 +27,10 @@
android:paddingLeft="24dp"
android:paddingRight="24dp"
android:paddingTop="24dp"
android:text="Content"
tools:text="Content"
android:textSize="18sp"
android:visibility="gone"/>
android:visibility="gone"
tools:visibility="visible"/>

<LinearLayout
android:id="@+id/dialog_custom_alongside_buttons"
Expand All @@ -46,8 +50,10 @@
android:padding="8dp"
android:background="@color/transparent"
android:textAllCaps="true"
tools:text="Cancel"
android:textSize="14sp"
android:visibility="gone"/>
android:visibility="gone"
tools:visibility="visible"/>

<Button
android:id="@+id/dialog_custom_confirm"
Expand All @@ -57,8 +63,10 @@
android:padding="8dp"
android:background="@color/transparent"
android:textAllCaps="true"
tools:text="OK"
android:textSize="14sp"
android:visibility="gone"/>
android:visibility="gone"
tools:visibility="visible"/>
</LinearLayout>

<LinearLayout
Expand All @@ -70,7 +78,9 @@
android:orientation="vertical"
android:paddingBottom="16dp"
android:paddingTop="24dp"
android:visibility="gone">
android:visibility="gone"
tools:visibility="visible">

<Button
android:id="@+id/dialog_custom_confirm_stacked"
android:layout_width="wrap_content"
Expand All @@ -80,8 +90,10 @@
android:padding="8dp"
android:background="@color/transparent"
android:textAllCaps="true"
tools:text="Cancel"
android:textSize="14sp"
android:visibility="gone"/>
android:visibility="gone"
tools:visibility="visible"/>

<Button
android:id="@+id/dialog_custom_cancel_stacked"
Expand All @@ -92,9 +104,11 @@
android:padding="8dp"
android:background="@color/transparent"
android:textAllCaps="true"
tools:text="OK"
android:textSize="14sp"
android:visibility="gone"/>
android:visibility="gone"
tools:visibility="visible"/>

</LinearLayout>
</LinearLayout>

</LinearLayout>
6 changes: 3 additions & 3 deletions app/src/main/res/layout/dialog_list_custom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:textSize="22sp"
android:padding="8dp"/>
android:padding="8dp"
android:visibility="visible"/>

<ListView
android:padding="8dp"
android:id="@+id/dialog_list_custom_list"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:divider="@color/transparent"/>
android:divider="#0000"/>

</LinearLayout>
7 changes: 5 additions & 2 deletions app/src/main/res/layout/item_dialog_list.xml
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>

<TextView xmlns:android="http://schemas.android.com/apk/res/android"
<TextView
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/item_dialog_list_item"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:padding="8dp"
android:minHeight="56dp"
android:text="@string/app_name"
tools:text="Item"
android:textSize="18sp"
android:gravity="left|center"/>
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>

<color name="transparent">#00000000</color>

</resources>
</resources>
3 changes: 0 additions & 3 deletions app/src/main/res/values/strings.xml

This file was deleted.

File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes

0 comments on commit 49653ec

Please sign in to comment.