mirror of https://github.com/tuskyapp/Tusky.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
132 lines
5.6 KiB
132 lines
5.6 KiB
<?xml version="1.0" encoding="utf-8"?> |
|
<androidx.drawerlayout.widget.DrawerLayout 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/mainDrawerLayout" |
|
android:layout_width="match_parent" |
|
android:layout_height="match_parent" |
|
android:fitsSystemWindows="true"> |
|
|
|
<androidx.coordinatorlayout.widget.CoordinatorLayout |
|
android:id="@+id/mainCoordinatorLayout" |
|
android:layout_width="match_parent" |
|
android:layout_height="match_parent" |
|
tools:context="com.keylesspalace.tusky.MainActivity"> |
|
|
|
<com.google.android.material.appbar.AppBarLayout |
|
android:id="@+id/appBar" |
|
android:layout_width="match_parent" |
|
android:layout_height="wrap_content" |
|
android:elevation="@dimen/actionbar_elevation" |
|
app:elevationOverlayEnabled="false"> |
|
|
|
<androidx.appcompat.widget.Toolbar |
|
android:id="@+id/mainToolbar" |
|
style="@style/Widget.AppCompat.Toolbar" |
|
android:layout_width="match_parent" |
|
android:layout_height="wrap_content" |
|
app:contentInsetStartWithNavigation="0dp" |
|
app:layout_scrollFlags="scroll|enterAlways" |
|
app:navigationContentDescription="@string/action_open_drawer" /> |
|
|
|
<LinearLayout |
|
android:id="@+id/topNav" |
|
android:layout_width="match_parent" |
|
android:layout_height="wrap_content" |
|
android:orientation="horizontal"> |
|
|
|
<com.google.android.material.imageview.ShapeableImageView |
|
android:id="@+id/topNavAvatar" |
|
android:layout_width="36dp" |
|
android:layout_height="36dp" |
|
android:layout_gravity="center_vertical" |
|
android:layout_marginStart="10dp" |
|
android:layout_marginEnd="10dp" |
|
android:background="@drawable/avatar_default" |
|
app:shapeAppearance="@style/ShapeAppearance.Avatar" /> |
|
|
|
<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" /> |
|
</LinearLayout> |
|
|
|
</com.google.android.material.appbar.AppBarLayout> |
|
|
|
<androidx.viewpager2.widget.ViewPager2 |
|
android:id="@+id/viewPager" |
|
android:layout_width="match_parent" |
|
android:layout_height="match_parent" |
|
android:layout_marginBottom="?attr/actionBarSize" |
|
android:background="?attr/windowBackgroundColor" |
|
app:layout_behavior="@string/appbar_scrolling_view_behavior" /> |
|
|
|
<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"> |
|
|
|
<LinearLayout |
|
android:layout_width="match_parent" |
|
android:layout_height="wrap_content" |
|
android:orientation="horizontal"> |
|
|
|
<com.google.android.material.imageview.ShapeableImageView |
|
android:id="@+id/bottomNavAvatar" |
|
android:layout_width="36dp" |
|
android:layout_height="36dp" |
|
android:layout_gravity="center_vertical" |
|
android:layout_marginStart="10dp" |
|
android:layout_marginEnd="10dp" |
|
android:background="@drawable/avatar_default" |
|
app:shapeAppearance="@style/ShapeAppearance.Avatar" /> |
|
|
|
<com.google.android.material.tabs.TabLayout |
|
android:id="@+id/bottomTabLayout" |
|
android:layout_width="match_parent" |
|
android:layout_height="?attr/actionBarSize" |
|
app:tabGravity="fill" |
|
app:tabIndicator="@null" |
|
app:tabMode="fixed" /> |
|
|
|
</LinearLayout> |
|
|
|
</com.google.android.material.bottomappbar.BottomAppBar> |
|
|
|
<com.google.android.material.floatingactionbutton.FloatingActionButton |
|
android:id="@+id/composeButton" |
|
android:layout_width="wrap_content" |
|
android:layout_height="wrap_content" |
|
android:layout_margin="@dimen/fabMargin" |
|
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" /> |
|
|
|
<ProgressBar |
|
android:id="@+id/progressBar" |
|
android:layout_width="wrap_content" |
|
android:layout_height="wrap_content" |
|
android:layout_gravity="center" |
|
android:visibility="gone" /> |
|
|
|
</androidx.coordinatorlayout.widget.CoordinatorLayout> |
|
|
|
<com.mikepenz.materialdrawer.widget.MaterialDrawerSliderView |
|
android:id="@+id/mainDrawer" |
|
android:layout_width="wrap_content" |
|
android:layout_height="match_parent" |
|
android:layout_gravity="start" |
|
android:fitsSystemWindows="true" /> |
|
|
|
</androidx.drawerlayout.widget.DrawerLayout> |
|
|
|
|