2021-05-14 15:14:42 +02:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
2021-05-20 05:18:24 +02:00
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
2021-05-14 15:14:42 +02:00
|
|
|
android:id="@+id/root_coordinator"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
2021-05-14 23:48:11 +02:00
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
2021-05-14 15:14:42 +02:00
|
|
|
android:layout_width="match_parent"
|
2021-05-20 05:18:24 +02:00
|
|
|
android:layout_height="match_parent">
|
|
|
|
|
|
|
|
<eu.kanade.tachiyomi.widget.ElevationAppBarLayout
|
|
|
|
android:id="@+id/appbar"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent">
|
|
|
|
|
|
|
|
<com.google.android.material.appbar.MaterialToolbar
|
|
|
|
android:id="@+id/toolbar"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="?attr/actionBarSize"
|
|
|
|
android:background="?attr/colorPrimary"
|
|
|
|
android:theme="?attr/actionBarTheme" />
|
|
|
|
|
|
|
|
</eu.kanade.tachiyomi.widget.ElevationAppBarLayout>
|
|
|
|
|
|
|
|
<FrameLayout
|
|
|
|
android:id="@+id/downloaded_only"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:background="@color/green"
|
|
|
|
android:visibility="gone"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/appbar"
|
|
|
|
tools:visibility="visible">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:padding="4dp"
|
|
|
|
android:text="@string/label_downloaded_only"
|
|
|
|
android:textColor="@color/md_white_1000" />
|
|
|
|
|
|
|
|
</FrameLayout>
|
|
|
|
|
|
|
|
<FrameLayout
|
|
|
|
android:id="@+id/incognito_mode"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:background="@color/md_grey_800"
|
|
|
|
android:visibility="gone"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/downloaded_only"
|
|
|
|
tools:visibility="visible">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:padding="4dp"
|
|
|
|
android:text="@string/pref_incognito_mode"
|
|
|
|
android:textColor="@color/md_white_1000" />
|
|
|
|
|
|
|
|
</FrameLayout>
|
2021-05-14 15:14:42 +02:00
|
|
|
|
|
|
|
<com.google.android.material.navigationrail.NavigationRailView
|
|
|
|
android:id="@+id/side_nav"
|
|
|
|
style="@style/Widget.MaterialComponents.NavigationRailView.Colored"
|
|
|
|
android:layout_width="wrap_content"
|
2021-05-20 05:18:24 +02:00
|
|
|
android:layout_height="0dp"
|
2021-05-14 15:14:42 +02:00
|
|
|
app:itemIconTint="@color/nav_selector"
|
2021-05-23 20:29:59 +02:00
|
|
|
app:itemRippleColor="?attr/rippleSecondaryColor"
|
2021-05-14 15:14:42 +02:00
|
|
|
app:itemTextColor="@color/nav_selector"
|
|
|
|
app:labelVisibilityMode="labeled"
|
2021-05-14 23:48:11 +02:00
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
2021-05-20 05:18:24 +02:00
|
|
|
app:layout_constraintTop_toBottomOf="@+id/incognito_mode"
|
2021-05-14 15:14:42 +02:00
|
|
|
app:menu="@menu/main_nav" />
|
|
|
|
|
2021-05-20 05:18:24 +02:00
|
|
|
<com.google.android.material.tabs.TabLayout
|
|
|
|
android:id="@+id/tabs"
|
|
|
|
style="@style/Theme.Widget.Tabs"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toEndOf="@+id/side_nav"
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/incognito_mode" />
|
|
|
|
|
2021-05-14 15:14:42 +02:00
|
|
|
<com.bluelinelabs.conductor.ChangeHandlerFrameLayout
|
|
|
|
android:id="@+id/controller_container"
|
|
|
|
android:layout_width="0dp"
|
2021-05-20 05:18:24 +02:00
|
|
|
android:layout_height="0dp"
|
2021-05-14 23:48:11 +02:00
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toEndOf="@+id/side_nav"
|
2021-05-20 05:18:24 +02:00
|
|
|
app:layout_constraintTop_toBottomOf="@+id/tabs" />
|
2021-05-14 15:14:42 +02:00
|
|
|
|
2021-05-14 23:48:11 +02:00
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
2021-05-14 15:14:42 +02:00
|
|
|
|
2021-05-14 23:48:11 +02:00
|
|
|
<include
|
|
|
|
android:id="@+id/fab_layout"
|
|
|
|
layout="@layout/main_activity_fab" />
|
2021-05-14 15:14:42 +02:00
|
|
|
|
|
|
|
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|