common_tabbed_sheet.xml 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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. xmlns:tools="http://schemas.android.com/tools"
  5. android:layout_width="match_parent"
  6. android:layout_height="wrap_content"
  7. android:orientation="vertical">
  8. <androidx.constraintlayout.widget.ConstraintLayout
  9. android:layout_width="match_parent"
  10. android:layout_height="wrap_content"
  11. android:background="?attr/colorPrimary">
  12. <com.google.android.material.tabs.TabLayout
  13. android:id="@+id/tabs"
  14. style="@style/Theme.Widget.Tabs"
  15. android:layout_width="0dp"
  16. android:layout_height="wrap_content"
  17. app:layout_constraintBottom_toBottomOf="parent"
  18. app:layout_constraintEnd_toStartOf="@+id/menu"
  19. app:layout_constraintStart_toStartOf="parent"
  20. app:layout_constraintTop_toTopOf="parent"
  21. app:tabGravity="fill"
  22. app:tabMode="fixed" />
  23. <ImageButton
  24. android:id="@+id/menu"
  25. android:layout_width="0dp"
  26. android:layout_height="wrap_content"
  27. android:background="?selectableItemBackgroundBorderless"
  28. android:contentDescription="@string/action_menu"
  29. android:paddingStart="10dp"
  30. android:paddingEnd="10dp"
  31. android:visibility="gone"
  32. app:layout_constraintBottom_toBottomOf="parent"
  33. app:layout_constraintEnd_toEndOf="parent"
  34. app:layout_constraintTop_toTopOf="parent"
  35. app:srcCompat="@drawable/ic_more_vert_24dp"
  36. app:tint="?attr/colorOnPrimary"
  37. tools:visibility="visible" />
  38. </androidx.constraintlayout.widget.ConstraintLayout>
  39. <eu.kanade.tachiyomi.widget.MaxHeightViewPager
  40. android:id="@+id/pager"
  41. android:layout_width="match_parent"
  42. android:layout_height="wrap_content" />
  43. </LinearLayout>