From c41e71003b6b5753570d15f88a911104f818d179 Mon Sep 17 00:00:00 2001 From: Alinson Xavier Date: Fri, 13 Mar 2015 11:57:45 -0400 Subject: [PATCH] Material redesign --- AndroidManifest.xml | 2 +- res/drawable-hdpi/ic_action_add_dark.png | Bin 0 -> 167 bytes res/drawable-mdpi/ic_action_add_dark.png | Bin 0 -> 129 bytes res/drawable-v21/habits_item_check_normal.xml | 6 +- .../habits_item_check_pressed.xml | 6 +- res/drawable-xhdpi/ic_action_add_dark.png | Bin 0 -> 189 bytes res/drawable-xxhdpi/ic_action_add_dark.png | Bin 0 -> 253 bytes res/drawable/ripple_background.xml | 6 ++ res/layout/edit_habit.xml | 66 +++++++++--------- res/layout/show_habits.xml | 9 ++- res/layout/show_habits_header_check.xml | 3 +- res/layout/show_habits_item.xml | 62 +++++++++------- res/layout/show_habits_item_check.xml | 14 ++-- res/menu-v21/show_habits_options.xml | 9 +++ res/values-v11/styles.xml | 11 --- res/values-v14/styles.xml | 12 ---- res/values-v21/styles.xml | 14 ++++ res/values/colors.xml | 7 ++ res/values/dimens.xml | 1 - res/values/styles.xml | 17 +---- src/org/isoron/uhabits/MainActivity.java | 2 + .../uhabits/dialogs/EditHabitFragment.java | 12 ++-- .../uhabits/dialogs/ShowHabitsFragment.java | 12 +++- 23 files changed, 149 insertions(+), 122 deletions(-) create mode 100644 res/drawable-hdpi/ic_action_add_dark.png create mode 100644 res/drawable-mdpi/ic_action_add_dark.png create mode 100644 res/drawable-xhdpi/ic_action_add_dark.png create mode 100644 res/drawable-xxhdpi/ic_action_add_dark.png create mode 100644 res/drawable/ripple_background.xml create mode 100644 res/menu-v21/show_habits_options.xml delete mode 100644 res/values-v11/styles.xml delete mode 100644 res/values-v14/styles.xml create mode 100644 res/values-v21/styles.xml diff --git a/AndroidManifest.xml b/AndroidManifest.xml index 9a6364911..255d05967 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -14,7 +14,7 @@ android:allowBackup="true" android:icon="@drawable/ic_launcher" android:label="@string/app_name" - android:theme="@android:style/Theme.Holo.Light" > + android:theme="@style/AppTheme" > diff --git a/res/drawable-hdpi/ic_action_add_dark.png b/res/drawable-hdpi/ic_action_add_dark.png new file mode 100644 index 0000000000000000000000000000000000000000..65fd03cb1f58e9be61f30b79cedb12d19504472b GIT binary patch literal 167 zcmeAS@N?(olHy`uVBq!ia0vp^1|ZDA1|-9oezpUtJWm(LkcwMxZ*Jr~puphj*j}WR zeY|kZn-m=#9cLYvz3lsWEhi|buy|T+iptJ8U0dkxkX8Ll2&fYR4!Abd&G#49W?tZ9 zr~Qxd$wSsK{dmqBzd3$#F~Za^tYLZcx7%})-B+fBXQ%U~eVEJ%lJa!*b6Mw<&;$TA Ccry6_ literal 0 HcmV?d00001 diff --git a/res/drawable-mdpi/ic_action_add_dark.png b/res/drawable-mdpi/ic_action_add_dark.png new file mode 100644 index 0000000000000000000000000000000000000000..e6b36b2b0847c8f3592552634066c573b75b7b92 GIT binary patch literal 129 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE1|*BCs=fdz4^J1zkcwMxuWjUHP~dU7cxL`t zrgtSmCm0yHP5?1p3ZcU XcKa9U(;Inz3rNJ%)z4*}Q$iB}8PO + android:top="1dp"> diff --git a/res/drawable-v21/habits_item_check_pressed.xml b/res/drawable-v21/habits_item_check_pressed.xml index 8fc26c9e2..f912c3dfc 100644 --- a/res/drawable-v21/habits_item_check_pressed.xml +++ b/res/drawable-v21/habits_item_check_pressed.xml @@ -10,10 +10,10 @@ + android:top="1dp"> diff --git a/res/drawable-xhdpi/ic_action_add_dark.png b/res/drawable-xhdpi/ic_action_add_dark.png new file mode 100644 index 0000000000000000000000000000000000000000..25f4060a9211bbb1a9823c3e0224a60c198f997b GIT binary patch literal 189 zcmeAS@N?(olHy`uVBq!ia0vp^4j|0I1|(Ny7TyC=EuJopAr-gY-ZJECP!Mo+Jhz?m z`m#rU9*(Ixfr@9m>)xgbt@ZJor1J7{RQAQ`#~-;gTnax9G7$?{QhbN{KT=cV_t?PjSi8C$3DgA{tY`njxgN@xNA!oxL? literal 0 HcmV?d00001 diff --git a/res/drawable-xxhdpi/ic_action_add_dark.png b/res/drawable-xxhdpi/ic_action_add_dark.png new file mode 100644 index 0000000000000000000000000000000000000000..b3823828669147b6ac7b4c8455174608c56cdeb1 GIT binary patch literal 253 zcmeAS@N?(olHy`uVBq!ia0vp^2_VeD1|%QND7OGoM?75|Ln>~)y}OaOL4m>5k*(qH z_k~C2PH@q7N=#%pyZ6cWL!!4Nn^Zg}0nwJit=Dc$+vRF*%&)Lr_U@+Hj0_G83>*v$ zj0_443@i){3=9Gc3{04U4aeL2zq781kz|;{J5T!@gGck>+gn+H)-%|%e-MiMDfCTJ s3&g_$6tEe*U^>H}V_qO9sd&zR&9bgd>8`Bq0&S3XPgg&ebxsLQ0HG;CVE_OC literal 0 HcmV?d00001 diff --git a/res/drawable/ripple_background.xml b/res/drawable/ripple_background.xml new file mode 100644 index 000000000..8ed1d1cd1 --- /dev/null +++ b/res/drawable/ripple_background.xml @@ -0,0 +1,6 @@ + + + + + \ No newline at end of file diff --git a/res/layout/edit_habit.xml b/res/layout/edit_habit.xml index 869562410..aca80a6f3 100644 --- a/res/layout/edit_habit.xml +++ b/res/layout/edit_habit.xml @@ -4,6 +4,7 @@ android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" + android:paddingBottom="8dp" tools:context="org.isoron.uhabits.dialogs.EditHabitFragment" tools:ignore="MergeRootFrame" > @@ -13,7 +14,9 @@ android:layout_height="wrap_content" android:layout_marginBottom="8dp" android:orientation="vertical" - android:padding="8dp" > + android:paddingLeft="24dp" + android:paddingRight="24dp" + > @@ -55,6 +57,7 @@ @@ -126,37 +129,36 @@ - - - -