summaryrefslogtreecommitdiffstats
path: root/res/drawable
diff options
context:
space:
mode:
authorDaisuke Miyakawa <dmiyakawa@google.com>2011-08-29 14:44:39 -0700
committerDaisuke Miyakawa <dmiyakawa@google.com>2011-08-30 14:04:18 -0700
commit64ef8131aab057fa37fa5f6d63b7296d2fda7fb6 (patch)
treec93d6c23ddb5305864cd96e41fa24c4cab957bb4 /res/drawable
parentbd702127c2287b905a3568a179aa07ab4b8580fa (diff)
downloadpackages_apps_Contacts-64ef8131aab057fa37fa5f6d63b7296d2fda7fb6.tar.gz
packages_apps_Contacts-64ef8131aab057fa37fa5f6d63b7296d2fda7fb6.tar.bz2
packages_apps_Contacts-64ef8131aab057fa37fa5f6d63b7296d2fda7fb6.zip
Show correct activated/selected effect for lists
- copy system assets for activated/selected states to the project -- rename existing list_pressed_holo_light to action_bar_item_pressed_holo_light since the name is not appropriate and used by system assets. - use white color for activated/selected texts - make ContactListItemView show "pressed" effect correctly -- "activated" background should not be shown when the item is not activated. If it shows it, "pressed" effect is hidden by the wrong background. -- The background itself is needed to not highlight section headers. -- manually call setActivated() toward children. Without it, they look "black" on the first app boot. - remove an animation parameter for ContactListItemView's "activated" background. The animation makes the whole item flicker. Bug: 5191524 Bug: 5199800 Bug: 5136917 Change-Id: I7c08d8f533f0dd5318c614e3df14bb39207485e9
Diffstat (limited to 'res/drawable')
-rw-r--r--res/drawable/action_bar_item_background.xml4
-rw-r--r--res/drawable/group_list_item_background.xml4
-rw-r--r--res/drawable/list_item_activated_background.xml5
3 files changed, 6 insertions, 7 deletions
diff --git a/res/drawable/action_bar_item_background.xml b/res/drawable/action_bar_item_background.xml
index 1fd46147b..8dd8d9b83 100644
--- a/res/drawable/action_bar_item_background.xml
+++ b/res/drawable/action_bar_item_background.xml
@@ -16,6 +16,6 @@
<selector xmlns:android="http://schemas.android.com/apk/res/android"
android:exitFadeDuration="@android:integer/config_mediumAnimTime">
- <item android:state_pressed="true" android:drawable="@drawable/list_pressed_holo_light"/>
+ <item android:state_pressed="true" android:drawable="@drawable/action_bar_item_pressed_holo_light"/>
<item android:drawable="@android:color/transparent" />
-</selector> \ No newline at end of file
+</selector>
diff --git a/res/drawable/group_list_item_background.xml b/res/drawable/group_list_item_background.xml
index 0e2e604c7..345117f91 100644
--- a/res/drawable/group_list_item_background.xml
+++ b/res/drawable/group_list_item_background.xml
@@ -17,6 +17,6 @@
<selector xmlns:android="http://schemas.android.com/apk/res/android"
android:exitFadeDuration="@android:integer/config_mediumAnimTime">
<item android:state_activated="true" android:drawable="@drawable/list_activated_holo" />
- <item android:state_pressed="true" android:drawable="@drawable/list_pressed_holo" />
+ <item android:state_pressed="true" android:drawable="@drawable/list_pressed_holo_light" />
<item android:state_focused="true" android:drawable="@drawable/list_focused_holo" />
-</selector> \ No newline at end of file
+</selector>
diff --git a/res/drawable/list_item_activated_background.xml b/res/drawable/list_item_activated_background.xml
index 6ea21d38e..a58577eb8 100644
--- a/res/drawable/list_item_activated_background.xml
+++ b/res/drawable/list_item_activated_background.xml
@@ -14,8 +14,7 @@
limitations under the License.
-->
-<selector xmlns:android="http://schemas.android.com/apk/res/android"
- android:exitFadeDuration="@android:integer/config_mediumAnimTime">
+<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_activated="true" android:drawable="@drawable/list_activated_holo" />
<item android:drawable="@drawable/list_background_holo" />
-</selector> \ No newline at end of file
+</selector>