From 7af2aa52ac2e458969abeaefec217f6a4f976767 Mon Sep 17 00:00:00 2001 From: John Spurlock Date: Thu, 30 Aug 2012 14:58:16 -0400 Subject: [PATCH] More traditional list item style for dreams settings. Other improvements: - remove "Start dreaming now", promote "When to dream" to action bar - added logging - hide dream settings button if n/a - new flat style for settings/preview + dividers - refresh dreams list when packages are installed/uninstalled - added placeholder for help url Bug:7010260 Change-Id: Ia443b4f76678eaf1a52b907d50aefb0d8f7e4748 --- res/drawable-hdpi/dream_info_bg_pressed.9.png | Bin 180 -> 0 bytes .../dream_info_bg_unpressed.9.png | Bin 176 -> 0 bytes res/drawable-mdpi/dream_info_bg_pressed.9.png | Bin 171 -> 0 bytes .../dream_info_bg_unpressed.9.png | Bin 165 -> 0 bytes .../dream_info_bg_pressed.9.png | Bin 207 -> 0 bytes .../dream_info_bg_upressed.9.png | Bin 200 -> 0 bytes res/drawable/dream_info_bg.xml | 22 ---- res/layout/dream_info_row.xml | 37 ++++-- res/values/strings.xml | 2 + src/com/android/settings/DreamBackend.java | 55 +++++--- src/com/android/settings/DreamSettings.java | 118 ++++++++++++------ 11 files changed, 144 insertions(+), 90 deletions(-) delete mode 100644 res/drawable-hdpi/dream_info_bg_pressed.9.png delete mode 100644 res/drawable-hdpi/dream_info_bg_unpressed.9.png delete mode 100644 res/drawable-mdpi/dream_info_bg_pressed.9.png delete mode 100644 res/drawable-mdpi/dream_info_bg_unpressed.9.png delete mode 100644 res/drawable-xhdpi/dream_info_bg_pressed.9.png delete mode 100644 res/drawable-xhdpi/dream_info_bg_upressed.9.png delete mode 100644 res/drawable/dream_info_bg.xml diff --git a/res/drawable-hdpi/dream_info_bg_pressed.9.png b/res/drawable-hdpi/dream_info_bg_pressed.9.png deleted file mode 100644 index 6193822d57c1ecc810bc6080fa75bd3221a0564f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 180 zcmeAS@N?(olHy`uVBq!ia0vp^d?3uh1|;P@bT0xamSQK*5Dp-y;YjHK@;M7UB8wRq zxI00Z(fs7;wLrlzPZ!4!jfqz$I&w7_@UWyWt(*}5S@PfZWv@EZ~Q&3-FtbFUH+U!H{7K5g|Ywd W7t@>)6Za2j1B0ilpUXO@geCw$7CJ=$ diff --git a/res/drawable-hdpi/dream_info_bg_unpressed.9.png b/res/drawable-hdpi/dream_info_bg_unpressed.9.png deleted file mode 100644 index 6ebed8bfd524c12aab5df367aa24ed6f989e9c1b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 176 zcmeAS@N?(olHy`uVBq!ia0vp^d?3uh1|;P@bT0xamSQK*5Dp-y;YjHK@;M7UB8wRq zxI00Z(fs7;wLrljPZ!4!jfqz$I&w8Q@Gz@iTK?t#`qzbu^IRNPylHA;-YcS}DRSH7 zhtcy(YAO?F_I2nz;7IIgRAE}MYTgp*+gm>RZ~S{)yZ7`WyZjiX9A)45)v{+DMN_@a SCB%THGkCiCxvXf4u@pObhHwBu4M$1`kk47*5n0T@ zz}*SLjOHg#uLTPFdb&7z_NZIZi^i>vnvNvzwEw(8+M(4A-nn(~d}Qi1~bSMSO3fbf)H2*7#CUrCS!??g9;F N@O1TaS?83{1OUbwHhTa7 diff --git a/res/drawable-mdpi/dream_info_bg_unpressed.9.png b/res/drawable-mdpi/dream_info_bg_unpressed.9.png deleted file mode 100644 index aa239b35c7ef0f14097ba6a60422ae56d21af9c9..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 165 zcmeAS@N?(olHy`uVBq!ia0vp^AT}2V8<6ZZI=>f4u@pObhHwBu4M$1`kk47*5n0T@ zz}*SLjOHg#uLTOad%8G=NK9SZZ^(5ZfX8XRqWH3scGWu&T_XGUC_G-Ch2A`P}xH9}w#$ClVJM&V`l*EFMy|DLt_2SrK1A&(n8+W^ zDW?^7$gK5`>2K%R6OKIoS>&RyvMJACn`E*=C&P=qm!noI?S3|gL0-f7XbF$soz4dat%R9{@aCB?sm$M^3E q$qeuBEnB#6UHZFVL+_XGGrusg9F - - - - - - - \ No newline at end of file diff --git a/res/layout/dream_info_row.xml b/res/layout/dream_info_row.xml index 64c2653d2fc..c2a9a32faaa 100644 --- a/res/layout/dream_info_row.xml +++ b/res/layout/dream_info_row.xml @@ -16,19 +16,26 @@ + android:background="?android:attr/selectableItemBackground" + android:divider="?android:attr/dividerHorizontal" + android:orientation="vertical" + android:showDividers="middle" > + android:layout_height="wrap_content" + android:layout_alignParentTop="true" > @@ -38,7 +45,6 @@ android:layout_height="match_parent" android:layout_alignParentRight="true" android:layout_centerVertical="true" - android:layout_margin="8dp" android:duplicateParentState="true" /> + android:textAppearance="?android:attr/textAppearanceMedium" /> + android:layout_height="wrap_content" + android:visibility="gone" > + android:layout_height="wrap_content" + android:divider="?android:attr/dividerVertical" + android:dividerPadding="12dp" + android:showDividers="middle" >