activity_main.xml 1.68 KB
Newer Older
Robert Hitt's avatar
Robert Hitt committed
1
<?xml version="1.0" encoding="utf-8"?>
Robert Hitt's avatar
Robert Hitt committed
2
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
3 4 5 6 7
    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="srct.whatsopen.views.activities.MainActivity">
Robert Hitt's avatar
Robert Hitt committed
8

Robert Hitt's avatar
Robert Hitt committed
9
    <LinearLayout
Robert Hitt's avatar
Robert Hitt committed
10
        android:layout_width="match_parent"
11 12 13
        android:layout_height="match_parent"
        android:fitsSystemWindows="true"
        android:orientation="vertical">
Robert Hitt's avatar
Robert Hitt committed
14

Robert Hitt's avatar
Robert Hitt committed
15 16
        <include
            layout="@layout/toolbar_main"
17 18
            android:layout_width="match_parent"
            android:layout_height="wrap_content" />
Robert Hitt's avatar
Robert Hitt committed
19

20
        <android.support.design.widget.TabLayout
Robert Hitt's avatar
Robert Hitt committed
21
            android:id="@+id/tabs"
22
            android:layout_width="match_parent"
23 24 25 26 27 28
            android:layout_height="wrap_content"
            android:layout_gravity="top"
            app:tabIndicatorColor="@color/colorPrimary"
            app:tabIndicatorHeight="6dp"
            app:tabBackground="@drawable/button_bg"
            app:tabMode="fixed" />
Robert Hitt's avatar
Robert Hitt committed
29 30 31 32 33

        <android.support.v4.view.ViewPager
            android:id="@+id/view_pager"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
34
            android:background="@android:color/white" />
Robert Hitt's avatar
Robert Hitt committed
35 36 37

    </LinearLayout>

38
    <ProgressBar
Robert Hitt's avatar
Robert Hitt committed
39
        android:id="@+id/progress_bar"
40 41 42
        style="@style/Widget.AppCompat.ProgressBar"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
Robert Hitt's avatar
Robert Hitt committed
43
        android:layout_gravity="center"
44
        android:visibility="gone" />
Robert Hitt's avatar
Robert Hitt committed
45

Robert Hitt's avatar
Robert Hitt committed
46
</FrameLayout>