diff options
author | Andrew Dolgov <[email protected]> | 2011-12-09 23:49:55 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2011-12-09 23:49:55 +0300 |
commit | 74c837e89f62dccfbc1b832bea8ed52319e01018 (patch) | |
tree | 77d03fbf542f06fc87a74fb69021b82b3948a2c9 /res/layout | |
parent | ff598602bd86c09aef64662345699637e753162a (diff) |
smooth article swiping using viewpager (in online mode)
Diffstat (limited to 'res/layout')
-rw-r--r-- | res/layout/article_fragment.xml | 17 | ||||
-rw-r--r-- | res/layout/article_pager.xml | 9 |
2 files changed, 10 insertions, 16 deletions
diff --git a/res/layout/article_fragment.xml b/res/layout/article_fragment.xml index 62f15143..596e4117 100644 --- a/res/layout/article_fragment.xml +++ b/res/layout/article_fragment.xml @@ -40,14 +40,7 @@ android:layout_height="wrap_content"
android:gravity="center_vertical"
android:layout_weight="0"
- android:layout_gravity="center_vertical" > -
- <ImageView
- android:id="@+id/prev_article"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_weight="0"
- android:src="@drawable/ic_prev_article" />
+ android:layout_gravity="center_vertical" >
<LinearLayout
android:paddingLeft="5dp"
@@ -95,14 +88,6 @@ android:textAppearance="?android:attr/textAppearanceSmall" />
</LinearLayout>
</LinearLayout>
-
- <ImageView
- android:id="@+id/next_article"
- android:layout_width="wrap_content"
- android:clickable="true"
- android:layout_height="wrap_content"
- android:layout_weight="0"
- android:src="@drawable/ic_next_article" />
</LinearLayout>
diff --git a/res/layout/article_pager.xml b/res/layout/article_pager.xml new file mode 100644 index 00000000..7647cce7 --- /dev/null +++ b/res/layout/article_pager.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="utf-8"?>
+
+<android.support.v4.view.ViewPager
+xmlns:android="http://schemas.android.com/apk/res/android"
+android:layout_width="fill_parent"
+android:layout_height="fill_parent"
+android:id="@+id/article_pager">
+
+</android.support.v4.view.ViewPager>
\ No newline at end of file |