summaryrefslogtreecommitdiff
path: root/res/layout/headlines_fragment.xml
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-05-28 12:55:21 +0400
committerAndrew Dolgov <[email protected]>2013-05-28 12:55:21 +0400
commit216eecc96a916568b3db5c5bb9a9083789cd262b (patch)
tree6c2d8b2ea1a047684edd7bb5f57037f1ca955ead /res/layout/headlines_fragment.xml
parentab4480c6f5f1e772ee2f24bd09457d95d4608365 (diff)
add fancy animations for headlines list
Diffstat (limited to 'res/layout/headlines_fragment.xml')
-rw-r--r--res/layout/headlines_fragment.xml46
1 files changed, 34 insertions, 12 deletions
diff --git a/res/layout/headlines_fragment.xml b/res/layout/headlines_fragment.xml
index 787a8c8d..58fa6694 100644
--- a/res/layout/headlines_fragment.xml
+++ b/res/layout/headlines_fragment.xml
@@ -1,17 +1,39 @@
-<?xml version="1.0" encoding="utf-8" ?>
- <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
+<?xml version="1.0" encoding="utf-8"?>
+<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/headlines_fragment"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:paddingLeft="5dp" >
-
- <ListView android:layout_height="match_parent" android:layout_width="match_parent" android:id="@+id/headlines"></ListView>
- <LinearLayout android:id="@+id/loading_container" android:gravity="center" android:layout_height="match_parent" android:layout_width="match_parent">
- <TextView android:layout_width="wrap_content" android:textAppearance="?android:attr/textAppearanceLarge" android:id="@+id/loading_message" android:layout_height="wrap_content" ></TextView>
+
+ <ListView
+ android:id="@+id/headlines"
+ android:layout_width="match_parent"
+ android:layoutAnimation="@anim/layout_headline"
+ android:layout_height="match_parent" >
+ </ListView>
+
+ <LinearLayout
+ android:id="@+id/loading_container"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:gravity="center" >
+
+ <TextView
+ android:id="@+id/loading_message"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:textAppearance="?android:attr/textAppearanceLarge" >
+ </TextView>
</LinearLayout>
- <TextView android:id="@+id/no_headlines"
- android:visibility="invisible"
- android:layout_gravity="center"
- android:textAppearance="?android:attr/textAppearanceLarge" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/no_headlines"></TextView>
-
- </FrameLayout>
+
+ <TextView
+ android:id="@+id/no_headlines"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_gravity="center"
+ android:text="@string/no_headlines"
+ android:textAppearance="?android:attr/textAppearanceLarge"
+ android:visibility="invisible" >
+ </TextView>
+
+</FrameLayout> \ No newline at end of file