feat: 优化代码

pull/133/head
kunfei 5 years ago
parent 8a553e1229
commit a0e2250922
  1. 2
      app/src/main/java/io/legado/app/ui/book/read/config/MoreConfigDialog.kt
  2. 2
      app/src/main/java/io/legado/app/ui/book/read/config/ReadStyleDialog.kt
  3. 11
      app/src/main/res/layout/view_read_menu.xml

@ -33,7 +33,7 @@ class MoreConfigDialog : DialogFragment() {
}
dialog?.window?.let {
it.setBackgroundDrawableResource(R.color.background)
it.decorView.setPadding(0, 5, 0, 0)
it.decorView.setPadding(0, 0, 0, 0)
val attr = it.attributes
attr.dimAmount = 0.0f
attr.gravity = Gravity.BOTTOM

@ -42,7 +42,7 @@ class ReadStyleDialog : DialogFragment(), FontSelectDialog.CallBack {
}
dialog?.window?.let {
it.setBackgroundDrawableResource(R.color.background)
it.decorView.setPadding(0, 5, 0, 0)
it.decorView.setPadding(0, 0, 0, 0)
val attr = it.attributes
attr.dimAmount = 0.0f
attr.gravity = Gravity.BOTTOM

@ -81,8 +81,9 @@
<LinearLayout
android:id="@+id/ll_floating_button"
android:layout_width="match_parent"
android:layout_height="60dp"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:gravity="center_vertical"
android:paddingStart="32dp"
android:paddingEnd="32dp">
@ -90,7 +91,7 @@
android:id="@+id/fabAutoPage"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="10dp"
android:layout_margin="16dp"
android:contentDescription="@string/auto_next_page"
android:src="@drawable/ic_auto_page"
android:tint="@color/tv_text_default"
@ -110,7 +111,7 @@
android:id="@+id/fabReplaceRule"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="10dp"
android:layout_margin="16dp"
android:contentDescription="@string/replace_rule_title"
android:src="@drawable/ic_find_replace"
android:tint="@color/tv_text_default"
@ -130,7 +131,7 @@
android:id="@+id/fabNightTheme"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="10dp"
android:layout_margin="16dp"
android:contentDescription="@string/dark_theme"
android:src="@drawable/ic_brightness"
android:tint="@color/tv_text_default"
@ -143,8 +144,6 @@
</LinearLayout>
<View style="@style/Style.Shadow.Bottom" />
<!--底部设置栏-->
<FrameLayout
android:layout_width="match_parent"

Loading…
Cancel
Save