标题分段 #181
This commit is contained in:
3 files changed
+7
-6
No files matched your search
@@ -599,9 +599,9 @@ object ReadBookConfig {
|
|||||||
var titleTopSpacing: Int = 0,
|
var titleTopSpacing: Int = 0,
|
||||||
var titleBottomSpacing: Int = 0,
|
var titleBottomSpacing: Int = 0,
|
||||||
var titleBold: Int = 500,//是否粗体字 0:正常, 1:粗体, 2:细体
|
var titleBold: Int = 500,//是否粗体字 0:正常, 1:粗体, 2:细体
|
||||||
var titleLineSpacingExtra: Int = 4,
|
var titleLineSpacingExtra: Int = 8,
|
||||||
var titleSegType: Int = 0,//分段模式
|
var titleSegType: Int = 0,//分段模式
|
||||||
var titleSegScaling: Float = 1.2f,//分段缩放,第二段与第一段的字体大小比例
|
var titleSegScaling: Float = 1f,//分段缩放,第二段与第一段的字体大小比例
|
||||||
var titleSegDistance: Int = 4,//分段判断,第几个字符开始分段
|
var titleSegDistance: Int = 4,//分段判断,第几个字符开始分段
|
||||||
var titleSegFlag: String = "",//分段判断,碰到指定值时分段
|
var titleSegFlag: String = "",//分段判断,碰到指定值时分段
|
||||||
var paragraphIndent: String = " ",//段落缩进
|
var paragraphIndent: String = " ",//段落缩进
|
||||||
|
|||||||
@@ -103,9 +103,9 @@
|
|||||||
android:id="@+id/dsb_title_seg_scaling"
|
android:id="@+id/dsb_title_seg_scaling"
|
||||||
android:layout_width="120dp"
|
android:layout_width="120dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:visibility="gone"
|
|
||||||
app:max="20"
|
app:max="20"
|
||||||
app:title="次行字体缩放" />
|
app:title="次行缩放(未完成)" />
|
||||||
|
|
||||||
<View
|
<View
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
|
|||||||
@@ -33,8 +33,9 @@
|
|||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginVertical="4dp"
|
android:layout_marginVertical="4dp"
|
||||||
android:maxLength="8"
|
android:maxLength="10"
|
||||||
android:maxLines="2"
|
android:maxLines="1"
|
||||||
|
android:ellipsize="end"
|
||||||
android:text="@string/text"
|
android:text="@string/text"
|
||||||
android:textColor="?android:attr/textColorSecondary"
|
android:textColor="?android:attr/textColorSecondary"
|
||||||
android:textSize="12sp"
|
android:textSize="12sp"
|
||||||
|
|||||||
Reference in new issue
Block a user