mirror of
https://github.com/gedoor/legado.git
synced 2025-08-10 00:52:30 +00:00
70 lines
3.0 KiB
XML
70 lines
3.0 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:background="@color/background"
|
|
android:orientation="vertical">
|
|
|
|
<androidx.appcompat.widget.Toolbar
|
|
android:id="@+id/tool_bar"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="@color/background_menu"
|
|
android:elevation="5dp"
|
|
android:theme="?attr/actionBarStyle"
|
|
app:displayHomeAsUp="false"
|
|
app:fitStatusBar="false"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:popupTheme="@style/AppTheme.PopupOverlay"
|
|
app:titleTextAppearance="@style/ToolbarTitle" />
|
|
|
|
<io.legado.app.ui.widget.anima.RefreshProgressBar
|
|
android:id="@+id/refresh_progress_bar"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="2dp"
|
|
app:layout_constraintTop_toBottomOf="@+id/tool_bar" />
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
android:id="@+id/recycler_view"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="0dp"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@+id/refresh_progress_bar" />
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:id="@+id/cl_toc"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="0dp"
|
|
android:background="@color/background"
|
|
android:visibility="gone"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@+id/tool_bar">
|
|
|
|
<androidx.constraintlayout.utils.widget.ImageFilterView
|
|
android:id="@+id/iv_hide_toc"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="36dp"
|
|
android:src="@drawable/ic_arrow_down"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:tint="@color/primaryText" />
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
android:id="@+id/recycler_view_toc"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="0dp"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@+id/iv_hide_toc" />
|
|
|
|
<io.legado.app.ui.widget.anima.RotateLoading
|
|
android:layout_width="36dp"
|
|
android:layout_height="36dp"
|
|
android:visibility="gone"
|
|
app:layout_constraintTop_toTopOf="@+id/recycler_view_toc"
|
|
app:layout_constraintLeft_toLeftOf="@+id/recycler_view_toc"
|
|
app:layout_constraintRight_toRightOf="@+id/recycler_view_toc"
|
|
app:layout_constraintBottom_toBottomOf="@+id/recycler_view_toc" />
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout> |