Skip to content

Commit e97a7ca

Browse files
committed
1,新增支持渐变色字体
1 parent 9ea08ff commit e97a7ca

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

README-zh.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88

99
## 多数app登陆首页都需要显示用户协议和隐私政策并且需要能够点击,遇到需要翻译多个国家语言的,多个TextView拼接会导致语序不对,而且换行也是个问题
1010

11-
<img src="https://github.com/FlyJingFish/FormatTextViewLib/blob/master/screenshot/Screenrecording_20230116_164552.gif" width="320px" height="640px" alt="show" />
11+
切换语言位置也能够精准 | 更有支持渐变色字体
12+
------ | ------
13+
<img src="https://github.com/FlyJingFish/FormatTextViewLib/blob/master/screenshot/Screenrecording_20230116_164552.gif" width="320px" height="640px" alt="show" />|<img src="https://github.com/FlyJingFish/FormatTextViewLib/blob/master/screenshot/Screenshot_20230511_154759.jpg" width="320px" height="640px" alt="show" />|
1214

1315
# 特色功能
1416

app/src/main/java/com/flyjingfish/formattextviewdemo/DemoActivity.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class DemoActivity : AppCompatActivity() {
4343
underlineMarginTop = 6f
4444
underlineWidth = 2f
4545
resValue = R.string.Privacy_Policy
46-
gradient = Gradient(intArrayOf(Color.BLUE,Color.RED),null,Gradient.Orientation.LEFT_BOTTOM_TO_RIGHT_TOP)
46+
gradient = Gradient(intArrayOf(Color.BLUE,Color.RED),null,Gradient.Orientation.TOP_TO_BOTTOM)
4747
}
4848
)
4949
text1.setOnFormatClickListener(object :OnFormatClickListener{
235 KB
Loading

0 commit comments

Comments
 (0)