main_activity.xml 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:app="http://schemas.android.com/apk/res-auto"
  4. android:layout_width="match_parent"
  5. android:layout_height="match_parent"
  6. android:orientation="vertical">
  7. <eu.kanade.tachiyomi.widget.ElevationAppBarLayout
  8. android:id="@+id/appbar"
  9. android:layout_width="match_parent"
  10. android:layout_height="wrap_content">
  11. <com.google.android.material.appbar.MaterialToolbar
  12. android:id="@+id/toolbar"
  13. android:layout_width="match_parent"
  14. android:layout_height="?attr/actionBarSize"
  15. android:background="?attr/colorPrimary"
  16. android:theme="?attr/actionBarTheme" />
  17. <com.google.android.material.tabs.TabLayout
  18. android:id="@+id/tabs"
  19. style="@style/Widget.MaterialComponents.TabLayout.Colored"
  20. android:layout_width="match_parent"
  21. android:layout_height="wrap_content"
  22. app:tabGravity="center"
  23. app:tabIndicator="@drawable/tab_indicator"
  24. app:tabIndicatorFullWidth="false"
  25. app:tabIndicatorHeight="3dp"
  26. app:tabInlineLabel="true"
  27. app:tabMinWidth="75dp"
  28. app:tabMode="scrollable" />
  29. </eu.kanade.tachiyomi.widget.ElevationAppBarLayout>
  30. <com.bluelinelabs.conductor.ChangeHandlerFrameLayout
  31. android:id="@+id/controller_container"
  32. android:layout_width="match_parent"
  33. android:layout_height="0dp"
  34. android:layout_weight="1" />
  35. <com.google.android.material.bottomnavigation.BottomNavigationView
  36. android:id="@+id/bottom_nav"
  37. style="@style/Widget.MaterialComponents.BottomNavigationView.Colored"
  38. android:layout_width="match_parent"
  39. android:layout_height="wrap_content"
  40. android:layout_gravity="bottom"
  41. app:labelVisibilityMode="labeled"
  42. app:menu="@menu/bottom_nav" />
  43. </LinearLayout>