pull/32/head
kunfei 5 years ago
parent 1f92dba5fa
commit bdedfcd6d3
  1. 141
      app/src/main/res/layout/dialog_read_book_style.xml
  2. 6
      app/src/main/res/values/strings.xml

@ -7,15 +7,64 @@
android:background="@color/background" android:background="@color/background"
android:padding="10dp"> android:padding="10dp">
<io.legado.app.lib.theme.view.ATEStrokeTextView
android:id="@+id/tv_text_bold"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="3dp"
android:text="@string/text_bold"
android:gravity="center"
android:textSize="14sp"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toLeftOf="@+id/tv_text_font"
app:layout_constraintTop_toTopOf="parent" />
<io.legado.app.lib.theme.view.ATEStrokeTextView
android:id="@+id/tv_text_font"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="3dp"
android:text="@string/text_font"
android:gravity="center"
android:textSize="14sp"
app:layout_constraintLeft_toRightOf="@+id/tv_text_bold"
app:layout_constraintRight_toLeftOf="@+id/tv_text_indent"
app:layout_constraintTop_toTopOf="parent" />
<io.legado.app.lib.theme.view.ATEStrokeTextView
android:id="@+id/tv_text_indent"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="3dp"
android:text="@string/text_indent"
android:gravity="center"
android:textSize="14sp"
app:layout_constraintLeft_toRightOf="@+id/tv_text_font"
app:layout_constraintRight_toLeftOf="@+id/tv_padding"
app:layout_constraintTop_toTopOf="parent" />
<io.legado.app.lib.theme.view.ATEStrokeTextView
android:id="@+id/tv_padding"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="3dp"
android:text="@string/padding"
android:gravity="center"
android:textSize="14sp"
app:layout_constraintLeft_toRightOf="@+id/tv_text_indent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<LinearLayout <LinearLayout
android:id="@+id/ll_text_size" android:id="@+id/ll_text_size"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:orientation="horizontal" android:orientation="horizontal"
android:paddingLeft="8dp" android:paddingLeft="10dp"
android:paddingRight="8dp" android:paddingRight="10dp"
android:gravity="center" android:gravity="center"
app:layout_constraintTop_toTopOf="parent"> app:layout_constraintTop_toBottomOf="@+id/tv_text_bold">
<TextView <TextView
android:layout_width="0dp" android:layout_width="0dp"
@ -49,12 +98,96 @@
</LinearLayout> </LinearLayout>
<LinearLayout
android:id="@+id/ll_text_letter_spacing"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:paddingLeft="10dp"
android:paddingRight="10dp"
android:gravity="center"
app:layout_constraintTop_toBottomOf="@+id/ll_text_size">
<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="@string/text_letter_spacing" />
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/iv_text_letter_spacing_add"
android:layout_width="24dp"
android:layout_height="24dp"
android:src="@drawable/ic_add"
android:background="?android:attr/selectableItemBackgroundBorderless"
android:tint="@color/tv_text_default" />
<io.legado.app.lib.theme.view.ATESeekBar
android:id="@+id/seek_text_letter_spacing"
android:layout_width="0dp"
android:layout_height="25dp"
android:layout_gravity="center_vertical"
android:layout_weight="4"
android:max="50" />
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/iv_text_letter_spacing_remove"
android:layout_width="24dp"
android:layout_height="24dp"
android:src="@drawable/ic_remove"
android:background="?android:attr/selectableItemBackgroundBorderless"
android:tint="@color/tv_text_default" />
</LinearLayout>
<LinearLayout
android:id="@+id/ll_line_size"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:paddingLeft="10dp"
android:paddingRight="10dp"
android:gravity="center"
app:layout_constraintTop_toBottomOf="@+id/ll_text_letter_spacing">
<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="@string/line_size" />
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/iv_text_line_size_add"
android:layout_width="24dp"
android:layout_height="24dp"
android:src="@drawable/ic_add"
android:background="?android:attr/selectableItemBackgroundBorderless"
android:tint="@color/tv_text_default" />
<io.legado.app.lib.theme.view.ATESeekBar
android:id="@+id/seek_line_size"
android:layout_width="0dp"
android:layout_height="25dp"
android:layout_gravity="center_vertical"
android:layout_weight="4"
android:max="50" />
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/iv_line_size_remove"
android:layout_width="24dp"
android:layout_height="24dp"
android:src="@drawable/ic_remove"
android:background="?android:attr/selectableItemBackgroundBorderless"
android:tint="@color/tv_text_default" />
</LinearLayout>
<View <View
android:id="@+id/vw_bg_fg" android:id="@+id/vw_bg_fg"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="0.8dp" android:layout_height="0.8dp"
android:background="@color/btn_bg_press" android:background="@color/btn_bg_press"
app:layout_constraintTop_toBottomOf="@+id/ll_text_size" /> app:layout_constraintTop_toBottomOf="@+id/ll_line_size" />
<TextView <TextView
android:id="@+id/tv_page_anim" android:id="@+id/tv_page_anim"

@ -241,14 +241,14 @@
<string name="search_book_source_num">搜索(共%d个书源)</string> <string name="search_book_source_num">搜索(共%d个书源)</string>
<string name="chapter_list_size">目录(%d)</string> <string name="chapter_list_size">目录(%d)</string>
<string name="text_bold">加粗</string> <string name="text_bold">加粗</string>
<string name="custom_font">字体</string> <string name="text_font">字体</string>
<string name="text">文字</string> <string name="text">文字</string>
<string name="home_page">软件主页</string> <string name="home_page">软件主页</string>
<string name="right"></string> <string name="right"></string>
<string name="left"></string> <string name="left"></string>
<string name="bottom"></string> <string name="bottom"></string>
<string name="top"></string> <string name="top"></string>
<string name="padding">边距:</string> <string name="padding">边距</string>
<string name="padding_top">上边距</string> <string name="padding_top">上边距</string>
<string name="padding_bottom">下边距</string> <string name="padding_bottom">下边距</string>
<string name="padding_left">左边距</string> <string name="padding_left">左边距</string>
@ -433,7 +433,7 @@
<string name="chapter_s">章节:</string> <string name="chapter_s">章节:</string>
<string name="to"></string> <string name="to"></string>
<string name="use_regex">使用正则表达式</string> <string name="use_regex">使用正则表达式</string>
<string name="indent">缩进</string> <string name="text_indent">缩进</string>
<string name="indent_0">无缩进</string> <string name="indent_0">无缩进</string>
<string name="indent_1">一字符缩进</string> <string name="indent_1">一字符缩进</string>
<string name="indent_2">二字符缩进</string> <string name="indent_2">二字符缩进</string>

Loading…
Cancel
Save