You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tasks/astrid/res/drawable/task_row_bg_dark.xml

16 lines
783 B
XML

<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android"
android:exitFadeDuration="@android:integer/config_mediumAnimTime">
<item android:state_window_focused="false" android:drawable="@android:color/transparent" />
<!-- Even though these two point to the same resource, have two states so the drawable will invalidate itself when coming out of pressed state. -->
<item android:state_focused="true"
android:drawable="@color/task_row_bg_dark_pressed" />
<item android:state_pressed="true"
android:drawable="@color/task_row_bg_dark_pressed" />
<item android:state_focused="false"
android:state_pressed="false"
android:drawable="@android:color/transparent" />
</selector>