summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-05-28 12:59:10 +0400
committerAndrew Dolgov <[email protected]>2013-05-28 12:59:10 +0400
commit29b5d95e90398e2e7c7b69cb6efd5522b0a2fe2c (patch)
tree881c555dd096934ab93cb7290dd789e3761bd3dd
parent216eecc96a916568b3db5c5bb9a9083789cd262b (diff)
add fancy animations for feed/cat lists
-rw-r--r--res/anim/feed_item.xml9
-rw-r--r--res/anim/layout_feeds.xml5
-rw-r--r--res/layout/cats_fragment.xml1
-rw-r--r--res/layout/feeds_fragment.xml1
4 files changed, 16 insertions, 0 deletions
diff --git a/res/anim/feed_item.xml b/res/anim/feed_item.xml
new file mode 100644
index 00000000..a60e0556
--- /dev/null
+++ b/res/anim/feed_item.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="utf-8"?>
+<set xmlns:android="http://schemas.android.com/apk/res/android" android:interpolator="@android:anim/accelerate_interpolator">
+ <alpha
+ android:fromAlpha="0"
+ android:toAlpha="1"
+ android:duration="150"
+ />
+</set>
+
diff --git a/res/anim/layout_feeds.xml b/res/anim/layout_feeds.xml
new file mode 100644
index 00000000..3e7c5003
--- /dev/null
+++ b/res/anim/layout_feeds.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="utf-8"?>
+<layoutAnimation xmlns:android="http://schemas.android.com/apk/res/android"
+ android:delay="20%"
+ android:animation="@anim/feed_item"
+/> \ No newline at end of file
diff --git a/res/layout/cats_fragment.xml b/res/layout/cats_fragment.xml
index 5f057688..a883bf9f 100644
--- a/res/layout/cats_fragment.xml
+++ b/res/layout/cats_fragment.xml
@@ -20,6 +20,7 @@
<ListView
android:id="@+id/feeds"
+ android:layoutAnimation="@anim/layout_feeds"
android:layout_width="match_parent"
android:layout_height="match_parent" >
</ListView>
diff --git a/res/layout/feeds_fragment.xml b/res/layout/feeds_fragment.xml
index c3840059..d7f24c42 100644
--- a/res/layout/feeds_fragment.xml
+++ b/res/layout/feeds_fragment.xml
@@ -20,6 +20,7 @@
<ListView
android:id="@+id/feeds"
+ android:layoutAnimation="@anim/layout_feeds"
android:layout_width="match_parent"
android:layout_height="match_parent" >
</ListView>