优化亮度条往中间移了一点,点到亮度条背景,亮度条不会消失,防误触

pull/1094/head
gedoor 3 years ago
parent 2509e23b58
commit f93f080a5e
  1. 5
      app/src/main/java/io/legado/app/ui/book/read/ReadMenu.kt
  2. 3
      app/src/main/res/layout/view_read_menu.xml

@ -82,8 +82,9 @@ class ReadMenu @JvmOverloads constructor(
tvFont.setTextColor(textColor)
ivSetting.setColorFilter(textColor)
tvSetting.setTextColor(textColor)
vwBg.setOnClickListener { }
vwNavigationBar.setOnClickListener { }
vwBg.setOnClickListener(null)
vwNavigationBar.setOnClickListener(null)
llBrightness.setOnClickListener(null)
seekBrightness.progress = context.getPrefInt("brightness", 100)
}

@ -71,9 +71,10 @@
android:id="@+id/ll_brightness"
android:layout_width="wrap_content"
android:layout_height="0dp"
android:layout_margin="8dp"
android:layout_margin="16dp"
android:gravity="center_horizontal"
android:orientation="vertical"
android:padding="6dp"
app:layout_constraintBottom_toTopOf="@+id/bottom_menu"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintTop_toBottomOf="@+id/title_bar">

Loading…
Cancel
Save