main_activity.xml 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <androidx.drawerlayout.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:app="http://schemas.android.com/apk/res-auto"
  4. android:id="@+id/drawer"
  5. android:layout_width="match_parent"
  6. android:layout_height="match_parent"
  7. android:fitsSystemWindows="true">
  8. <LinearLayout
  9. android:layout_width="match_parent"
  10. android:layout_height="match_parent"
  11. android:orientation="vertical">
  12. <eu.kanade.tachiyomi.widget.ElevationAppBarLayout
  13. android:id="@+id/appbar"
  14. android:layout_width="match_parent"
  15. android:layout_height="wrap_content">
  16. <androidx.appcompat.widget.Toolbar
  17. android:id="@+id/toolbar"
  18. android:layout_width="match_parent"
  19. android:layout_height="?attr/actionBarSize"
  20. android:background="?attr/colorPrimary"
  21. android:theme="?attr/actionBarTheme" />
  22. <com.google.android.material.tabs.TabLayout
  23. android:id="@+id/tabs"
  24. android:layout_width="match_parent"
  25. android:layout_height="wrap_content"
  26. android:theme="@style/Theme.ActionBar.Tab"
  27. app:tabGravity="center"
  28. app:tabIndicatorColor="@android:color/white"
  29. app:tabInlineLabel="true"
  30. app:tabMinWidth="75dp"
  31. app:tabMode="scrollable" />
  32. </eu.kanade.tachiyomi.widget.ElevationAppBarLayout>
  33. <com.bluelinelabs.conductor.ChangeHandlerFrameLayout
  34. android:id="@+id/controller_container"
  35. android:layout_width="match_parent"
  36. android:layout_height="0dp"
  37. android:layout_weight="1" />
  38. <com.google.android.material.bottomnavigation.BottomNavigationView
  39. android:id="@+id/bottom_nav"
  40. android:layout_width="match_parent"
  41. android:layout_height="wrap_content"
  42. android:layout_gravity="bottom"
  43. android:background="?attr/colorPrimary"
  44. app:itemIconTint="@drawable/bottom_nav_item_selector"
  45. app:itemTextColor="@drawable/bottom_nav_item_selector"
  46. app:labelVisibilityMode="labeled"
  47. app:menu="@menu/bottom_nav" />
  48. </LinearLayout>
  49. </androidx.drawerlayout.widget.DrawerLayout>