106 lines
4.2 KiB
XML
106 lines
4.2 KiB
XML
|
<?xml version="1.0" encoding="utf-8"?>
|
||
|
<android.support.design.widget.CoordinatorLayout
|
||
|
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:id="@+id/main_content"
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="match_parent"
|
||
|
tools:context=".activities.SettingsActivity">
|
||
|
|
||
|
<android.support.design.widget.AppBarLayout
|
||
|
android:id="@+id/appbar"
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="@dimen/app_bar_height"
|
||
|
android:fitsSystemWindows="true"
|
||
|
android:background="@color/colorPrimary"
|
||
|
app:theme="@style/AppTheme.AppBarOverlay">
|
||
|
|
||
|
<android.support.design.widget.CollapsingToolbarLayout
|
||
|
android:id="@+id/toolbar_layout"
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="match_parent"
|
||
|
android:fitsSystemWindows="true"
|
||
|
app:contentScrim="@color/transparent"
|
||
|
app:layout_scrollFlags="scroll|exitUntilCollapsed"
|
||
|
app:toolbarId="@+id/toolbar">
|
||
|
|
||
|
<SurfaceView
|
||
|
android:id="@+id/surface_view"
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="match_parent" />
|
||
|
|
||
|
<View
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="match_parent"
|
||
|
android:background="@color/colorPrimaryTransparent"/>
|
||
|
|
||
|
<android.support.v7.widget.Toolbar
|
||
|
android:id="@+id/toolbar"
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="?attr/actionBarSize"
|
||
|
android:background="@color/transparent"
|
||
|
android:layout_marginTop="8dp"
|
||
|
app:layout_collapseMode="none"
|
||
|
app:popupTheme="@style/AppTheme.PopupOverlay">
|
||
|
|
||
|
<android.support.constraint.ConstraintLayout
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="match_parent">
|
||
|
|
||
|
<ImageView
|
||
|
android:layout_width="30dp"
|
||
|
android:layout_height="30dp" />
|
||
|
|
||
|
</android.support.constraint.ConstraintLayout>
|
||
|
|
||
|
|
||
|
</android.support.v7.widget.Toolbar>
|
||
|
|
||
|
<android.support.design.widget.TabLayout
|
||
|
android:id="@+id/tabs"
|
||
|
android:layout_gravity="bottom"
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content"
|
||
|
app:layout_collapseMode="pin"
|
||
|
android:animateLayoutChanges="true">
|
||
|
|
||
|
<android.support.design.widget.TabItem
|
||
|
android:id="@+id/tabItem"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:text="@string/general" />
|
||
|
|
||
|
<android.support.design.widget.TabItem
|
||
|
android:id="@+id/tabItem2"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:text="@string/security" />
|
||
|
|
||
|
<android.support.design.widget.TabItem
|
||
|
android:id="@+id/tabItem3"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:text="@string/backups" />
|
||
|
|
||
|
<android.support.design.widget.TabItem
|
||
|
android:id="@+id/tabItem4"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:text="@string/accounts" />
|
||
|
|
||
|
</android.support.design.widget.TabLayout>
|
||
|
|
||
|
</android.support.design.widget.CollapsingToolbarLayout>
|
||
|
|
||
|
</android.support.design.widget.AppBarLayout>
|
||
|
|
||
|
<!-- change height -->
|
||
|
<android.support.v4.view.ViewPager
|
||
|
android:id="@+id/pager"
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="match_parent"
|
||
|
app:layout_behavior="@string/appbar_scrolling_view_behavior" />
|
||
|
|
||
|
</android.support.design.widget.CoordinatorLayout>
|