aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcin Zelent <zelent.marcin@gmail.com>2018-03-29 15:58:03 +0200
committerMarcin Zelent <zelent.marcin@gmail.com>2018-03-29 15:58:03 +0200
commit14e6b8b0171601c7392d13c4c79e38c2e55df928 (patch)
tree837d4fbe59f9723ffcd9deccaaec60d3bbdd4725 /app/src/main/res/layout/fragment_observations.xml
parentffd565bf02a180a249f361b29395f716c0ac2b40 (diff)
Added fragments
Diffstat (limited to 'app/src/main/res/layout/fragment_observations.xml')
-rw-r--r--app/src/main/res/layout/fragment_observations.xml45
1 files changed, 45 insertions, 0 deletions
diff --git a/app/src/main/res/layout/fragment_observations.xml b/app/src/main/res/layout/fragment_observations.xml
new file mode 100644
index 0000000..791c16c
--- /dev/null
+++ b/app/src/main/res/layout/fragment_observations.xml
@@ -0,0 +1,45 @@
+<?xml version="1.0" encoding="utf-8"?>
+<FrameLayout
+ 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"
+ tools:context=".ObservationsFragment">
+
+ <android.support.v4.view.ViewPager
+ 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.support.design.widget.TabLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content">
+
+ <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.design.widget.TabLayout>
+ </android.support.v4.view.ViewPager>
+
+ <android.support.design.widget.FloatingActionButton
+ android:id="@+id/fab"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_gravity="bottom|end"
+ android:layout_margin="@dimen/fab_margin"
+ app:srcCompat="@android:drawable/ic_menu_add" />
+
+</FrameLayout> \ No newline at end of file