2017-01-03 10:30:27 +11:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2020-04-16 02:57:53 +10:00
|
|
|
<androidx.drawerlayout.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
2017-02-20 11:27:15 +11:00
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
2017-04-27 22:47:56 +10:00
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
2020-04-16 02:57:53 +10:00
|
|
|
android:id="@+id/mainDrawerLayout"
|
2017-01-03 10:30:27 +11:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
2020-04-16 02:57:53 +10:00
|
|
|
android:fitsSystemWindows="true">
|
2017-01-03 10:30:27 +11:00
|
|
|
|
2020-04-16 02:57:53 +10:00
|
|
|
<androidx.coordinatorlayout.widget.CoordinatorLayout
|
2017-01-03 10:30:27 +11:00
|
|
|
android:layout_width="match_parent"
|
2020-04-16 02:57:53 +10:00
|
|
|
android:layout_height="match_parent"
|
|
|
|
tools:context="com.keylesspalace.tusky.MainActivity">
|
2017-04-09 18:13:18 +10:00
|
|
|
|
2020-04-16 02:57:53 +10:00
|
|
|
<com.google.android.material.appbar.AppBarLayout
|
2017-06-20 10:50:40 +10:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2020-04-16 02:57:53 +10:00
|
|
|
android:elevation="@dimen/actionbar_elevation"
|
|
|
|
app:elevationOverlayEnabled="false">
|
2019-10-13 05:00:29 +11:00
|
|
|
|
2020-04-16 02:57:53 +10:00
|
|
|
<androidx.appcompat.widget.Toolbar
|
|
|
|
android:id="@+id/mainToolbar"
|
2019-10-13 05:00:29 +11:00
|
|
|
android:layout_width="match_parent"
|
2020-04-16 02:57:53 +10:00
|
|
|
android:layout_height="wrap_content"
|
2020-06-18 19:04:53 +10:00
|
|
|
app:contentInsetStartWithNavigation="0dp"
|
2020-12-14 02:31:42 +11:00
|
|
|
app:layout_scrollFlags="scroll|enterAlways"
|
|
|
|
app:navigationContentDescription="@string/action_open_drawer" />
|
2017-01-10 17:14:27 +11:00
|
|
|
|
2020-06-18 19:04:53 +10:00
|
|
|
<com.google.android.material.tabs.TabLayout
|
|
|
|
android:id="@+id/tabLayout"
|
|
|
|
style="@style/TuskyTabAppearance"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
app:tabGravity="fill"
|
|
|
|
app:tabMaxWidth="0dp"
|
|
|
|
app:tabMode="fixed" />
|
2019-10-13 05:00:29 +11:00
|
|
|
|
2020-04-16 02:57:53 +10:00
|
|
|
</com.google.android.material.appbar.AppBarLayout>
|
|
|
|
|
|
|
|
<androidx.viewpager2.widget.ViewPager2
|
|
|
|
android:id="@+id/viewPager"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
2020-06-18 19:04:53 +10:00
|
|
|
android:layout_marginBottom="?attr/actionBarSize"
|
2020-04-16 02:57:53 +10:00
|
|
|
android:background="?attr/windowBackgroundColor"
|
|
|
|
app:layout_behavior="@string/appbar_scrolling_view_behavior" />
|
2017-03-10 14:35:08 +11:00
|
|
|
|
2020-06-18 19:04:53 +10:00
|
|
|
<com.google.android.material.bottomappbar.BottomAppBar
|
|
|
|
android:id="@+id/bottomNav"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="bottom"
|
|
|
|
app:contentInsetStart="0dp"
|
|
|
|
app:fabAlignmentMode="end">
|
|
|
|
|
|
|
|
<com.google.android.material.tabs.TabLayout
|
|
|
|
android:id="@+id/bottomTabLayout"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="?attr/actionBarSize"
|
|
|
|
app:tabIndicator="@null"
|
|
|
|
app:tabMode="fixed" />
|
|
|
|
|
|
|
|
</com.google.android.material.bottomappbar.BottomAppBar>
|
|
|
|
|
2020-04-16 02:57:53 +10:00
|
|
|
<com.google.android.material.floatingactionbutton.FloatingActionButton
|
|
|
|
android:id="@+id/composeButton"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2020-06-18 19:04:53 +10:00
|
|
|
android:layout_margin="@dimen/fabMargin"
|
2020-04-16 02:57:53 +10:00
|
|
|
android:contentDescription="@string/action_compose"
|
|
|
|
app:layout_anchor="@id/viewPager"
|
|
|
|
app:layout_anchorGravity="bottom|end"
|
|
|
|
app:srcCompat="@drawable/ic_create_24dp" />
|
|
|
|
|
|
|
|
<include layout="@layout/item_status_bottom_sheet" />
|
|
|
|
|
|
|
|
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|
|
|
|
|
|
|
|
<com.mikepenz.materialdrawer.widget.MaterialDrawerSliderView
|
|
|
|
android:id="@+id/mainDrawer"
|
2017-03-07 11:38:22 +11:00
|
|
|
android:layout_width="wrap_content"
|
2020-04-16 02:57:53 +10:00
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_gravity="start"
|
|
|
|
android:fitsSystemWindows="true" />
|
2017-04-09 18:13:18 +10:00
|
|
|
|
2020-04-16 02:57:53 +10:00
|
|
|
</androidx.drawerlayout.widget.DrawerLayout>
|
2018-05-07 06:05:54 +10:00
|
|
|
|