Animated icons
This commit is contained in:
24
app/src/main/res/drawable/ic_feed_selector.xml
Normal file
24
app/src/main/res/drawable/ic_feed_selector.xml
Normal file
@@ -0,0 +1,24 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<animated-selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<item
|
||||
android:id="@+id/normal"
|
||||
android:drawable="@drawable/ic_feed"
|
||||
android:state_checked="false" />
|
||||
|
||||
<item
|
||||
android:id="@+id/checked"
|
||||
android:drawable="@drawable/ic_feed"
|
||||
android:state_checked="true" />
|
||||
|
||||
<transition
|
||||
android:drawable="@drawable/avd_feed_enter_leave"
|
||||
android:fromId="@id/normal"
|
||||
android:toId="@id/checked" />
|
||||
|
||||
<transition
|
||||
android:drawable="@drawable/avd_feed_enter_leave"
|
||||
android:fromId="@id/checked"
|
||||
android:toId="@id/normal" />
|
||||
|
||||
</animated-selector>
|
||||
Reference in New Issue
Block a user