diff options
author | daniel oeh <daniel.oeh@gmail.com> | 2012-07-01 13:41:54 +0200 |
---|---|---|
committer | daniel oeh <daniel.oeh@gmail.com> | 2012-07-01 13:41:54 +0200 |
commit | d1b1c92efe79e6aa7bb954d8b17ecfed2c7655b8 (patch) | |
tree | ff5d940766052f30ec10cb094ceee87400959033 /res | |
parent | 364e9e1c5ca37dfd5c09b1d21a8153ac10ee746d (diff) | |
download | AntennaPod-d1b1c92efe79e6aa7bb954d8b17ecfed2c7655b8.zip |
Added viewpager indicator library
Diffstat (limited to 'res')
-rw-r--r-- | res/layout/main.xml | 9 | ||||
-rw-r--r-- | res/values/styles.xml | 14 |
2 files changed, 22 insertions, 1 deletions
diff --git a/res/layout/main.xml b/res/layout/main.xml index 6c578105e..1ab614050 100644 --- a/res/layout/main.xml +++ b/res/layout/main.xml @@ -1,9 +1,16 @@ <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" - android:id="@+id/main_view" + android:id="@+id/main_view" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" > + + <com.viewpagerindicator.TabPageIndicator + android:id="@+id/tabs" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + /> + <android.support.v4.view.ViewPager android:id="@+id/viewpager" android:layout_width="match_parent" diff --git a/res/values/styles.xml b/res/values/styles.xml new file mode 100644 index 000000000..c4238d984 --- /dev/null +++ b/res/values/styles.xml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="utf-8"?> +<resources xmlns:android="http://schemas.android.com/apk/res/android"> + + <style name="PodTheme" parent="@style/Theme.Sherlock.Light.ForceOverflow"> + <item name="vpiTabPageIndicatorStyle">@style/Widget.TabPageIndicator</item> + </style> + + <style name="StyledIndicators" parent="PodTheme"> + <item name="vpiTabPageIndicatorStyle">@style/Widget.TabPageIndicator</item> + <item name="android:textColor">@color/black</item> + </style> + + +</resources>
\ No newline at end of file |