tachiyomi/app/src/main/res/layout/common_tabbed_sheet.xml

53 lines
2.2 KiB
XML
Raw Normal View History

2020-04-25 06:15:37 +08:00
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout 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"
2020-04-25 06:15:37 +08:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<androidx.constraintlayout.widget.ConstraintLayout
2020-04-25 06:15:37 +08:00
android:layout_width="match_parent"
2021-02-02 11:23:29 +08:00
android:layout_height="wrap_content">
2021-02-02 11:23:29 +08:00
<!-- Remove background color so rounded sheet corners work -->
<com.google.android.material.tabs.TabLayout
android:id="@+id/tabs"
style="@style/Theme.Widget.Tabs"
android:layout_width="0dp"
android:layout_height="wrap_content"
2021-02-02 11:23:29 +08:00
android:background="@android:color/transparent"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toStartOf="@+id/menu"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:tabGravity="fill"
2021-05-23 00:02:49 +08:00
app:tabIndicatorColor="?attr/colorAccent"
app:tabMode="fixed"
app:tabTextColor="@color/tabs_selector_background" />
<ImageButton
android:id="@+id/menu"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:background="@drawable/ripple_regular"
android:contentDescription="@string/action_menu"
android:paddingStart="10dp"
android:paddingEnd="10dp"
2020-09-15 04:13:28 +08:00
android:visibility="gone"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:srcCompat="@drawable/ic_more_vert_24dp"
app:tint="?attr/colorOnBackground"
2020-09-15 04:13:28 +08:00
tools:visibility="visible" />
</androidx.constraintlayout.widget.ConstraintLayout>
2020-04-25 06:15:37 +08:00
<eu.kanade.tachiyomi.widget.sheet.BottomSheetViewPager
2020-04-29 07:57:49 +08:00
android:id="@+id/pager"
2020-04-25 06:15:37 +08:00
android:layout_width="match_parent"
android:layout_height="wrap_content" />
</LinearLayout>