| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119 |
- <?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:layout_width="match_parent"
- android:layout_height="match_parent"
- android:orientation="vertical">
- <androidx.appcompat.widget.Toolbar
- android:id="@+id/tool_bar"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- app:displayHomeAsUp="false"
- app:fitStatusBar="false" />
- <com.google.android.material.progressindicator.LinearProgressIndicator
- android:id="@+id/refresh_progress_bar"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:indeterminate="true" />
- <io.legado.app.ui.widget.recycler.scroller.FastScrollRecyclerView
- android:id="@+id/recycler_view"
- android:layout_width="match_parent"
- android:layout_height="0dp"
- android:layout_weight="1"
- app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager" />
- <FrameLayout
- android:id="@+id/cl_toc"
- android:layout_width="match_parent"
- android:layout_height="0dp"
- android:layout_weight="1"
- android:orientation="vertical"
- android:visibility="gone">
- <FrameLayout
- android:id="@+id/fl_hide_toc"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_gravity="top"
- android:elevation="4dp"
- app:layout_constraintTop_toTopOf="parent">
- <androidx.constraintlayout.utils.widget.ImageFilterView
- android:id="@+id/iv_hide_toc"
- android:layout_width="match_parent"
- android:layout_height="36dp"
- android:background="?attr/selectableItemBackground"
- android:src="@drawable/ic_arrow_down" />
- </FrameLayout>
- <com.google.android.material.loadingindicator.LoadingIndicator
- android:id="@+id/loading_toc"
- android:layout_width="48dp"
- android:layout_height="48dp"
- android:layout_gravity="center"
- android:visibility="gone"
- app:layout_constraintBottom_toBottomOf="@+id/recycler_view_toc"
- app:layout_constraintLeft_toLeftOf="@+id/recycler_view_toc"
- app:layout_constraintRight_toRightOf="@+id/recycler_view_toc"
- app:layout_constraintTop_toTopOf="@+id/recycler_view_toc" />
- <androidx.recyclerview.widget.RecyclerView
- android:id="@+id/recycler_view_toc"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
- app:layout_constraintBottom_toBottomOf="parent"
- app:layout_constraintTop_toBottomOf="@+id/fl_hide_toc" />
- </FrameLayout>
- <LinearLayout
- android:id="@+id/ll_bottom_bar"
- android:layout_width="match_parent"
- android:layout_height="36dp"
- android:layout_gravity="bottom"
- android:gravity="center_vertical"
- android:orientation="horizontal"
- android:paddingLeft="10dp"
- android:paddingRight="10dp">
- <TextView
- android:id="@+id/tv_dur"
- android:layout_width="0dp"
- android:layout_height="match_parent"
- android:layout_weight="1"
- android:background="?attr/selectableItemBackgroundBorderless"
- android:ellipsize="middle"
- android:gravity="center_vertical"
- android:paddingLeft="10dp"
- android:paddingRight="10dp"
- android:singleLine="true"
- android:textSize="12sp" />
- <androidx.appcompat.widget.AppCompatImageView
- android:id="@+id/iv_top"
- android:layout_width="36dp"
- android:layout_height="match_parent"
- android:background="?attr/selectableItemBackgroundBorderless"
- android:contentDescription="@string/go_to_top"
- android:src="@drawable/ic_arrow_drop_up"
- android:tooltipText="@string/go_to_top"
- tools:ignore="UnusedAttribute" />
- <androidx.appcompat.widget.AppCompatImageView
- android:id="@+id/iv_bottom"
- android:layout_width="36dp"
- android:layout_height="match_parent"
- android:background="?attr/selectableItemBackgroundBorderless"
- android:contentDescription="@string/go_to_bottom"
- android:src="@drawable/ic_arrow_drop_down"
- android:tooltipText="@string/go_to_bottom"
- tools:ignore="UnusedAttribute" />
- </LinearLayout>
- </LinearLayout>
|