diff options
author | Andrew Sapperstein <asapperstein@google.com> | 2013-05-21 16:00:51 -0700 |
---|---|---|
committer | Andrew Sapperstein <asapperstein@google.com> | 2013-05-22 00:11:44 +0000 |
commit | cf979b90e54f0e943008f04d4ad1a68b89f81683 (patch) | |
tree | 72684da4d432c58d992a5ab0388f7d4237ce53c5 /res/color | |
parent | 54bdefa330211e0d104175258c8f7ae96252f685 (diff) | |
download | android_packages_apps_UnifiedEmail-cf979b90e54f0e943008f04d4ad1a68b89f81683.tar.gz android_packages_apps_UnifiedEmail-cf979b90e54f0e943008f04d4ad1a68b89f81683.tar.bz2 android_packages_apps_UnifiedEmail-cf979b90e54f0e943008f04d4ad1a68b89f81683.zip |
Using drawable states for drag and drop.
Now we're using states for icons, background colors,
and text colors. The framework updates these automatically
so we're not updating stuff when we receive DragEvents.
Change-Id: I16c14cc8681b8249428876f6bc435ac9a8de93cc
(cherry picked from commit 05eca5b9b96778122e6a4c4b66bec604f0103bea)
Diffstat (limited to 'res/color')
-rw-r--r-- | res/color/folder_item_text_color.xml | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/res/color/folder_item_text_color.xml b/res/color/folder_item_text_color.xml index ab79a8db4..47e27f0a2 100644 --- a/res/color/folder_item_text_color.xml +++ b/res/color/folder_item_text_color.xml @@ -16,7 +16,10 @@ limitations under the License. --> -<selector xmlns:android="http://schemas.android.com/apk/res/android"> +<selector xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:app="http://schemas.android.com/apk/res-auto"> + <item app:state_drag_mode="true" android:state_drag_can_accept="false" + android:color="@color/folder_disabled_drop_target_text_color" /> <item android:state_activated="true" android:color="@android:color/white" /> <item android:color="@color/dark_gray_text_color" /> </selector> |