summaryrefslogtreecommitdiffstats
path: root/chips/res
diff options
context:
space:
mode:
authorMindy Pereira <mindyp@google.com>2011-06-14 11:39:36 -0700
committerMindy Pereira <mindyp@google.com>2011-06-14 12:01:03 -0700
commit156467329e276c9bc90945bea916ce3ac4849574 (patch)
tree2fe1fb1738ba12952a81e4f5a7c8e423ca84564c /chips/res
parent4f7412c084ad344e94a320b51270ac6480a47a84 (diff)
downloadandroid_frameworks_ex-156467329e276c9bc90945bea916ce3ac4849574.tar.gz
android_frameworks_ex-156467329e276c9bc90945bea916ce3ac4849574.tar.bz2
android_frameworks_ex-156467329e276c9bc90945bea916ce3ac4849574.zip
Delay closing the alternates popup when the user selects an alternate.
Per UX, this gives the user a better idea of what has just occured. Using temporary assets. Change-Id: Ied49f899d7999356cc01a672ecb22f492901d55c
Diffstat (limited to 'chips/res')
-rw-r--r--chips/res/drawable-hdpi/alternate_list_background.pngbin0 -> 1336 bytes
-rw-r--r--chips/res/drawable-hdpi/chip_checkmark.pngbin1133 -> 1199 bytes
-rw-r--r--chips/res/drawable-mdpi/alternate_list_background.pngbin0 -> 1336 bytes
-rw-r--r--chips/res/drawable/list_item_background.xml21
-rw-r--r--chips/res/layout/chips_alternate_item.xml3
5 files changed, 23 insertions, 1 deletions
diff --git a/chips/res/drawable-hdpi/alternate_list_background.png b/chips/res/drawable-hdpi/alternate_list_background.png
new file mode 100644
index 0000000..ad79a76
--- /dev/null
+++ b/chips/res/drawable-hdpi/alternate_list_background.png
Binary files differ
diff --git a/chips/res/drawable-hdpi/chip_checkmark.png b/chips/res/drawable-hdpi/chip_checkmark.png
index cac823b..cc0b617 100644
--- a/chips/res/drawable-hdpi/chip_checkmark.png
+++ b/chips/res/drawable-hdpi/chip_checkmark.png
Binary files differ
diff --git a/chips/res/drawable-mdpi/alternate_list_background.png b/chips/res/drawable-mdpi/alternate_list_background.png
new file mode 100644
index 0000000..ad79a76
--- /dev/null
+++ b/chips/res/drawable-mdpi/alternate_list_background.png
Binary files differ
diff --git a/chips/res/drawable/list_item_background.xml b/chips/res/drawable/list_item_background.xml
new file mode 100644
index 0000000..18033af
--- /dev/null
+++ b/chips/res/drawable/list_item_background.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2011 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<selector xmlns:android="http://schemas.android.com/apk/res/android">
+ <item android:state_activated="true" android:drawable="@drawable/alternate_list_background" />
+ <item android:state_checked="true" android:drawable="@drawable/alternate_list_background" />
+ <item android:state_selected="true" android:drawable="@drawable/alternate_list_background" />
+</selector> \ No newline at end of file
diff --git a/chips/res/layout/chips_alternate_item.xml b/chips/res/layout/chips_alternate_item.xml
index b5c4e9d..0d69659 100644
--- a/chips/res/layout/chips_alternate_item.xml
+++ b/chips/res/layout/chips_alternate_item.xml
@@ -20,7 +20,8 @@
android:layout_height="wrap_content"
android:minHeight="30dip"
android:orientation="horizontal"
- android:gravity="left|center_vertical">
+ android:gravity="left|center_vertical"
+ android:background="@drawable/list_item_background">
<FrameLayout
android:layout_width="50dip"
android:layout_height="wrap_content">