AndroidAPS/app/src/main/res/layout/activity_main.xml
2022-04-06 08:58:52 +02:00

60 lines
No EOL
2.3 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:clipChildren="false"
android:clipToPadding="false">
<com.google.android.material.appbar.MaterialToolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
app:contentInsetEndWithActions="48dp"
app:contentInsetStartWithNavigation="48dp"
android:elevation="2dp">
<com.google.android.material.tabs.TabLayout
android:id="@+id/tabs_normal"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@android:color/transparent"
app:tabMode="scrollable" />
<com.google.android.material.tabs.TabLayout
android:id="@+id/tabs_compact"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@android:color/transparent"
app:tabMinWidth="0dp"
app:tabPadding="0dp"
app:tabMode="scrollable" />
</com.google.android.material.appbar.MaterialToolbar>
<androidx.drawerlayout.widget.DrawerLayout
android:id="@+id/main_drawer_layout"
android:layout_weight="1"
android:layout_width="match_parent"
android:layout_height="0dp">
<androidx.viewpager2.widget.ViewPager2
android:id="@+id/main_pager"
android:layout_width="match_parent"
android:layout_height="match_parent" />
<com.google.android.material.navigation.NavigationView
android:id="@+id/main_navigation_view"
android:layout_width="wrap_content"
android:layout_height="match_parent"
app:itemBackground="?attr/selectableItemBackground"
android:fitsSystemWindows="true"
android:layout_gravity="start"
app:itemIconTint="?android:textColorPrimary"
app:itemTextColor="?android:textColorPrimary"/>
</androidx.drawerlayout.widget.DrawerLayout>
</LinearLayout>