summaryrefslogtreecommitdiff
path: root/org.fox.ttcomics
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2015-06-10 09:38:56 +0300
committerAndrew Dolgov <[email protected]>2015-06-10 09:38:56 +0300
commitc9e35e4be6e3e57cdd4451426f4a5220a9b787ca (patch)
treec33b4798ac7e1f3f1df7ce087554ebba630418b1 /org.fox.ttcomics
parent097486d424a1c320644312595603160fca7c0b23 (diff)
add basic raise for list items
Diffstat (limited to 'org.fox.ttcomics')
-rw-r--r--org.fox.ttcomics/src/main/res/anim/raise.xml16
-rwxr-xr-xorg.fox.ttcomics/src/main/res/layout/comics_grid_row.xml1
2 files changed, 17 insertions, 0 deletions
diff --git a/org.fox.ttcomics/src/main/res/anim/raise.xml b/org.fox.ttcomics/src/main/res/anim/raise.xml
new file mode 100644
index 0000000..2ecdc09
--- /dev/null
+++ b/org.fox.ttcomics/src/main/res/anim/raise.xml
@@ -0,0 +1,16 @@
+<selector xmlns:android="http://schemas.android.com/apk/res/android">
+ <item android:state_enabled="true" android:state_pressed="true">
+ <objectAnimator
+ android:duration="@android:integer/config_shortAnimTime"
+ android:propertyName="translationZ"
+ android:valueTo="8dp"
+ android:valueType="floatType" />
+ </item>
+ <item>
+ <objectAnimator
+ android:duration="@android:integer/config_shortAnimTime"
+ android:propertyName="translationZ"
+ android:valueTo="0dp"
+ android:valueType="floatType" />
+ </item>
+</selector> \ No newline at end of file
diff --git a/org.fox.ttcomics/src/main/res/layout/comics_grid_row.xml b/org.fox.ttcomics/src/main/res/layout/comics_grid_row.xml
index ac1af32..fbbe5ca 100755
--- a/org.fox.ttcomics/src/main/res/layout/comics_grid_row.xml
+++ b/org.fox.ttcomics/src/main/res/layout/comics_grid_row.xml
@@ -3,6 +3,7 @@
xmlns:card_view="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
xmlns:android="http://schemas.android.com/apk/res/android"
+ android:stateListAnimator="@anim/raise"
android:id="@+id/comics_list_row"
android:layout_width="160dp"
android:layout_height="210dp"