diff options
Diffstat (limited to 'res')
-rw-r--r-- | res/anim/appear.xml | 9 | ||||
-rw-r--r-- | res/anim/layout_comics.xml | 5 | ||||
-rw-r--r-- | res/layout/fragment_comics_list.xml | 10 |
3 files changed, 18 insertions, 6 deletions
diff --git a/res/anim/appear.xml b/res/anim/appear.xml new file mode 100644 index 0000000..a60e055 --- /dev/null +++ b/res/anim/appear.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_comics.xml b/res/anim/layout_comics.xml new file mode 100644 index 0000000..93a58f1 --- /dev/null +++ b/res/anim/layout_comics.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/appear"
+/>
diff --git a/res/layout/fragment_comics_list.xml b/res/layout/fragment_comics_list.xml index ee744a8..cdef287 100644 --- a/res/layout/fragment_comics_list.xml +++ b/res/layout/fragment_comics_list.xml @@ -6,6 +6,7 @@ <ListView
android:id="@+id/comics_list"
+ android:layoutAnimation="@anim/layout_comics"
android:layout_width="match_parent"
android:layout_height="wrap_content" >
</ListView>
@@ -14,12 +15,9 @@ android:id="@+id/no_comics"
android:layout_width="match_parent"
android:layout_height="match_parent"
- android:layout_gravity="center"
- android:padding="4dp"
- android:orientation="vertical" >
-
-
-
+ android:layout_gravity="center"
+ android:orientation="vertical"
+ android:padding="4dp" >
<TextView
android:id="@+id/textView1"
|