mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-15 13:25:13 +01:00
90a6543334
To all my fellow tab-hating fans: I'm so sorry. Words cannot express the disappointment in myself. I shall be posting a public YouTube apology video soon.
54 lines
2.2 KiB
XML
54 lines
2.2 KiB
XML
<?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"
|
|
android:id="@+id/tabs_layout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="@drawable/bottom_sheet_rounded_background"
|
|
android:orientation="vertical">
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:layout_width="match_parent"
|
|
android:id="@+id/tabs_constraint"
|
|
android:layout_height="wrap_content">
|
|
|
|
<!-- 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"
|
|
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:tabTextColor="@color/tabs_selector_background"
|
|
app:tabIndicatorColor="?attr/colorAccent"
|
|
app:tabGravity="fill"
|
|
app:tabMode="fixed" />
|
|
|
|
<ImageButton
|
|
android:id="@+id/menu"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:background="?selectableItemBackgroundBorderless"
|
|
android:contentDescription="@string/more"
|
|
android:paddingStart="10dp"
|
|
android:paddingEnd="10dp"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:srcCompat="@drawable/ic_settings_24dp"
|
|
app:tint="?attr/colorOnBackground" />
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
<eu.kanade.tachiyomi.widget.MeasuredViewPager
|
|
android:id="@+id/pager"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content" />
|
|
|
|
</LinearLayout>
|