replicant-packages_apps_Email/res/drawable/ic_folder_drafts.xml
Andrew Sapperstein 3340827bde Adding drag-state drawable to folder item icons.
Fixes b/8986628. Previously we had two states for
icons in the folder list (activated and default).
We now have a third state for when the app is in
drag mode and the folder is disabled which uses
a lighter grey icon. To make this work, we use
a custom drawable state (state_drag_mode) for
when drag is entered. Another CL will use this
new drag state for changing folder text color as well.

Change-Id: I4c752ac7b996fd026e706f8e592ec57326ac61bf
(cherry picked from commit 0670cddaf92475ff30c7bd05af337ffa12e9ca95)
2013-05-21 23:55:11 +00:00

23 lines
1.1 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2013 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"
xmlns:app="http://schemas.android.com/apk/res/com.android.email">
<item app:state_drag_mode="true" android:state_drag_can_accept="false"
android:drawable="@drawable/ic_folder_drafts_holo_gray" />
<item android:state_activated="true" android:drawable="@drawable/ic_folder_drafts_holo_dark" />
<item android:drawable="@drawable/ic_folder_drafts_holo_light" />
</selector>