mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 21:03:54 +01:00
59 lines
No EOL
2.2 KiB
XML
59 lines
No EOL
2.2 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
android:id="@+id/drawer_layout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:background="?attr/contributionsListBackground"
|
|
>
|
|
|
|
<RelativeLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:gravity="center_horizontal"
|
|
>
|
|
<include
|
|
android:id="@+id/toolbar"
|
|
layout="@layout/toolbar"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content" />
|
|
|
|
<android.support.design.widget.TabLayout
|
|
android:id="@+id/tab_layout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
app:tabMaxWidth="0dp"
|
|
app:tabGravity="fill"
|
|
app:tabMode="fixed"
|
|
android:layout_below="@+id/toolbar"
|
|
android:elevation="6dp"
|
|
android:minHeight="?attr/actionBarSize"
|
|
app:tabIndicatorColor="@android:color/white"
|
|
android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
|
|
android:background="?attr/mainTabBackground"/>
|
|
|
|
<FrameLayout android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:id="@+id/contributionsFragmentContainer"
|
|
android:orientation="horizontal"
|
|
android:layout_below="@id/tab_layout">
|
|
|
|
<android.support.v4.view.ViewPager
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:id="@+id/pager"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent" />
|
|
|
|
</FrameLayout>
|
|
|
|
</RelativeLayout>
|
|
|
|
<android.support.design.widget.NavigationView
|
|
android:id="@+id/navigation_view"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="match_parent"
|
|
android:layout_gravity="start"
|
|
app:headerLayout="@layout/drawer_header"
|
|
app:menu="@menu/drawer"/>
|
|
|
|
</android.support.v4.widget.DrawerLayout> |