diff options
author | Marcin Zelent <zelent.marcin@gmail.com> | 2018-03-29 23:25:18 +0200 |
---|---|---|
committer | Marcin Zelent <zelent.marcin@gmail.com> | 2018-03-29 23:25:18 +0200 |
commit | 7294c6bd32e362b4c0a64cadbf4dd2c191e1ad8e (patch) | |
tree | 1265a82d6195a11082363d883b4aafa537b6af0b /app/src/main/res/layout/fragment_observations.xml | |
parent | 0ca89e916444d5e3f42238d36039e53903555276 (diff) |
Added observations tabs
Diffstat (limited to 'app/src/main/res/layout/fragment_observations.xml')
-rw-r--r-- | app/src/main/res/layout/fragment_observations.xml | 29 |
1 files changed, 11 insertions, 18 deletions
diff --git a/app/src/main/res/layout/fragment_observations.xml b/app/src/main/res/layout/fragment_observations.xml index 791c16c..3396fcc 100644 --- a/app/src/main/res/layout/fragment_observations.xml +++ b/app/src/main/res/layout/fragment_observations.xml @@ -7,32 +7,25 @@ android:layout_height="match_parent" tools:context=".ObservationsFragment"> - <android.support.v4.view.ViewPager - xmlns:android="http://schemas.android.com/apk/res/android" + <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" - xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" - app:layout_behavior="@string/appbar_scrolling_view_behavior" - tools:context="org.marcinzelent.liberavem.MainActivity" - tools:showIn="@layout/app_bar_main"> + android:orientation="vertical"> <android.support.design.widget.TabLayout + android:id="@+id/sliding_tabs" android:layout_width="match_parent" - android:layout_height="wrap_content"> + android:layout_height="wrap_content" + app:tabMode="fixed" /> - <android.support.design.widget.TabItem - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:text="My observations" /> - - <android.support.design.widget.TabItem - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:text="All observations" /> + <android.support.v4.view.ViewPager + android:id="@+id/viewpager" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:background="@android:color/white" /> - </android.support.design.widget.TabLayout> - </android.support.v4.view.ViewPager> + </LinearLayout> <android.support.design.widget.FloatingActionButton android:id="@+id/fab" |