common_tabbed_sheet.xml 2.1 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. 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. <!-- Remove background color so rounded sheet corners work -->
  12. <com.google.android.material.tabs.TabLayout
  13. style="@style/Widget.Tachiyomi.TabLayout"
  14. android:id="@+id/tabs"
  15. android:layout_width="0dp"
  16. android:layout_height="wrap_content"
  17. android:background="@android:color/transparent"
  18. app:layout_constraintBottom_toBottomOf="parent"
  19. app:layout_constraintEnd_toStartOf="@+id/menu"
  20. app:layout_constraintStart_toStartOf="parent"
  21. app:layout_constraintTop_toTopOf="parent"
  22. app:tabGravity="fill"
  23. app:tabMode="fixed" />
  24. <ImageButton
  25. android:id="@+id/menu"
  26. android:layout_width="0dp"
  27. android:layout_height="wrap_content"
  28. android:background="?attr/selectableItemBackgroundBorderless"
  29. android:contentDescription="@string/action_menu"
  30. android:paddingStart="10dp"
  31. android:paddingEnd="10dp"
  32. android:visibility="gone"
  33. app:layout_constraintBottom_toBottomOf="parent"
  34. app:layout_constraintEnd_toEndOf="parent"
  35. app:layout_constraintTop_toTopOf="parent"
  36. app:srcCompat="@drawable/ic_overflow_24dp"
  37. app:tint="?attr/colorOnSurface"
  38. tools:visibility="visible" />
  39. </androidx.constraintlayout.widget.ConstraintLayout>
  40. <eu.kanade.tachiyomi.widget.sheet.BottomSheetViewPager
  41. android:id="@+id/pager"
  42. android:layout_width="match_parent"
  43. android:layout_height="wrap_content" />
  44. </LinearLayout>