更新
This commit is contained in:
@@ -214,7 +214,7 @@ class ChangeBookSourceDialog() : BaseDialogFragment(R.layout.dialog_book_change_
|
|||||||
|
|
||||||
private fun initLiveData() {
|
private fun initLiveData() {
|
||||||
viewModel.searchStateData.observe(viewLifecycleOwner) {
|
viewModel.searchStateData.observe(viewLifecycleOwner) {
|
||||||
binding.refreshProgressBar.isAutoLoading = it
|
//binding.refreshProgressBar.isAutoLoading = it
|
||||||
if (it) {
|
if (it) {
|
||||||
startStopMenuItem?.let { item ->
|
startStopMenuItem?.let { item ->
|
||||||
item.setIcon(R.drawable.ic_stop_black_24dp)
|
item.setIcon(R.drawable.ic_stop_black_24dp)
|
||||||
|
|||||||
@@ -58,7 +58,7 @@
|
|||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
android:icon="@drawable/ic_toc"
|
app:icon="@drawable/ic_toc"
|
||||||
android:text="@string/chapter_list"
|
android:text="@string/chapter_list"
|
||||||
android:textSize="12sp"
|
android:textSize="12sp"
|
||||||
android:padding="0dp"
|
android:padding="0dp"
|
||||||
@@ -72,7 +72,7 @@
|
|||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
android:icon="@drawable/ic_menu"
|
app:icon="@drawable/ic_menu"
|
||||||
android:text="@string/main_menu"
|
android:text="@string/main_menu"
|
||||||
android:textSize="12sp"
|
android:textSize="12sp"
|
||||||
android:padding="0dp"
|
android:padding="0dp"
|
||||||
@@ -86,7 +86,7 @@
|
|||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
android:icon="@drawable/ic_auto_page_stop"
|
app:icon="@drawable/ic_auto_page_stop"
|
||||||
android:text="@string/stop"
|
android:text="@string/stop"
|
||||||
android:textSize="12sp"
|
android:textSize="12sp"
|
||||||
android:padding="0dp"
|
android:padding="0dp"
|
||||||
@@ -100,7 +100,7 @@
|
|||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
android:icon="@drawable/ic_settings"
|
app:icon="@drawable/ic_settings"
|
||||||
android:text="@string/setting"
|
android:text="@string/setting"
|
||||||
android:textSize="12sp"
|
android:textSize="12sp"
|
||||||
android:padding="0dp"
|
android:padding="0dp"
|
||||||
|
|||||||
@@ -18,10 +18,11 @@
|
|||||||
app:layout_constraintTop_toTopOf="parent"
|
app:layout_constraintTop_toTopOf="parent"
|
||||||
app:titleTextAppearance="@style/ToolbarTitle" />
|
app:titleTextAppearance="@style/ToolbarTitle" />
|
||||||
|
|
||||||
<io.legato.kazusa.ui.widget.anima.RefreshProgressBar
|
<com.google.android.material.progressindicator.LinearProgressIndicator
|
||||||
android:id="@+id/refresh_progress_bar"
|
android:id="@+id/refresh_progress_bar"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="2dp"
|
android:layout_height="wrap_content"
|
||||||
|
android:indeterminate="true"
|
||||||
app:layout_constraintTop_toBottomOf="@+id/tool_bar" />
|
app:layout_constraintTop_toBottomOf="@+id/tool_bar" />
|
||||||
|
|
||||||
<io.legato.kazusa.ui.widget.recycler.scroller.FastScrollRecyclerView
|
<io.legato.kazusa.ui.widget.recycler.scroller.FastScrollRecyclerView
|
||||||
@@ -50,32 +51,29 @@
|
|||||||
android:background="?android:attr/selectableItemBackgroundBorderless"
|
android:background="?android:attr/selectableItemBackgroundBorderless"
|
||||||
android:ellipsize="end"
|
android:ellipsize="end"
|
||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
android:paddingLeft="10dp"
|
|
||||||
android:paddingRight="10dp"
|
|
||||||
android:singleLine="true"
|
android:singleLine="true"
|
||||||
android:textColor="@color/primaryText"
|
|
||||||
android:textSize="12sp" />
|
android:textSize="12sp" />
|
||||||
|
|
||||||
<androidx.appcompat.widget.AppCompatImageView
|
<com.google.android.material.button.MaterialButton
|
||||||
android:id="@+id/iv_top"
|
android:id="@+id/iv_top"
|
||||||
android:layout_width="36dp"
|
android:layout_width="36dp"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:background="?android:attr/selectableItemBackgroundBorderless"
|
style="@style/Widget.Material3.Button.IconButton.Filled.Tonal"
|
||||||
android:contentDescription="@string/go_to_top"
|
android:contentDescription="@string/go_to_top"
|
||||||
android:src="@drawable/ic_arrow_drop_up"
|
app:icon="@drawable/ic_arrow_drop_up"
|
||||||
|
app:iconGravity="textStart"
|
||||||
android:tooltipText="@string/go_to_top"
|
android:tooltipText="@string/go_to_top"
|
||||||
app:tint="@color/primaryText"
|
|
||||||
tools:ignore="UnusedAttribute" />
|
tools:ignore="UnusedAttribute" />
|
||||||
|
|
||||||
<androidx.appcompat.widget.AppCompatImageView
|
<com.google.android.material.button.MaterialButton
|
||||||
android:id="@+id/iv_bottom"
|
android:id="@+id/iv_bottom"
|
||||||
android:layout_width="36dp"
|
android:layout_width="36dp"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:background="?android:attr/selectableItemBackgroundBorderless"
|
style="@style/Widget.Material3.Button.IconButton.Filled.Tonal"
|
||||||
android:contentDescription="@string/go_to_bottom"
|
android:contentDescription="@string/go_to_bottom"
|
||||||
android:src="@drawable/ic_arrow_drop_down"
|
app:icon="@drawable/ic_arrow_drop_down"
|
||||||
|
app:iconGravity="textStart"
|
||||||
android:tooltipText="@string/go_to_bottom"
|
android:tooltipText="@string/go_to_bottom"
|
||||||
app:tint="@color/primaryText"
|
|
||||||
tools:ignore="UnusedAttribute" />
|
tools:ignore="UnusedAttribute" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
|
|||||||
@@ -74,7 +74,6 @@
|
|||||||
android:id="@+id/ll_brightness"
|
android:id="@+id/ll_brightness"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="0dp"
|
android:layout_height="0dp"
|
||||||
|
|
||||||
android:layout_marginTop="16dp"
|
android:layout_marginTop="16dp"
|
||||||
android:gravity="left"
|
android:gravity="left"
|
||||||
android:orientation="vertical"
|
android:orientation="vertical"
|
||||||
|
|||||||
Reference in New Issue
Block a user