mirror of
https://github.com/mihonapp/mihon.git
synced 2024-11-13 05:52:48 +01:00
7d50d7ff52
Co-authored-by: CrepeTF <trungnguyen02@outlookcom>
112 lines
4.5 KiB
XML
112 lines
4.5 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<eu.kanade.tachiyomi.widget.TachiyomiCoordinatorLayout 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/root_coordinator"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="vertical">
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
|
|
<com.google.android.material.appbar.TachiyomiAppBarLayout
|
|
android:id="@+id/appbar"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:fitsSystemWindows="true"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toEndOf="@id/side_nav"
|
|
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:theme="?attr/actionBarTheme" />
|
|
|
|
</com.google.android.material.appbar.TachiyomiAppBarLayout>
|
|
|
|
<FrameLayout
|
|
android:id="@+id/downloaded_only"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:background="?attr/colorTertiary"
|
|
android:visibility="gone"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toEndOf="@id/side_nav"
|
|
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="?attr/colorOnTertiary" />
|
|
|
|
</FrameLayout>
|
|
|
|
<FrameLayout
|
|
android:id="@+id/incognito_mode"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:background="?attr/colorPrimary"
|
|
android:visibility="gone"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toEndOf="@id/side_nav"
|
|
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="?attr/colorOnPrimary" />
|
|
|
|
</FrameLayout>
|
|
|
|
<com.google.android.material.navigationrail.NavigationRailView
|
|
android:id="@+id/side_nav"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="match_parent"
|
|
android:paddingTop="?attr/actionBarSize"
|
|
app:elevation="1dp"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:menu="@menu/main_nav" />
|
|
|
|
<com.google.android.material.tabs.TabLayout
|
|
android:id="@+id/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" />
|
|
|
|
<eu.kanade.tachiyomi.widget.TachiyomiChangeHandlerFrameLayout
|
|
android:id="@+id/controller_container"
|
|
android:layout_width="0dp"
|
|
android:layout_height="0dp"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toEndOf="@+id/side_nav"
|
|
app:layout_constraintTop_toBottomOf="@+id/tabs" />
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
<eu.kanade.tachiyomi.widget.ActionModeWithToolbar
|
|
android:id="@+id/action_toolbar"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="bottom" />
|
|
|
|
<include
|
|
android:id="@+id/fab_layout"
|
|
layout="@layout/main_activity_fab" />
|
|
|
|
</eu.kanade.tachiyomi.widget.TachiyomiCoordinatorLayout>
|