Skip to content

Commit 57eb6cf

Browse files
committed
优化 Demo 工程的使用案例
1 parent 0e19f70 commit 57eb6cf

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

app/src/main/java/com/hjq/shape/demo/MainActivity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public void onTitleClick(TitleBar titleBar) {
8181
textColorBuilder.clearTextGradientColor();
8282
textColorBuilder.clearTextStrokeColor();
8383
} else {
84-
textColorBuilder.setTextGradientColors(new int[] {0xFF49DAFA, 0xFFED58FF})
84+
textColorBuilder.setTextGradientColors(new int[] {0xFFFEFA54, 0xFFF08833})
8585
.setTextStrokeColor(0xFF000000)
8686
.intoTextColor();
8787
}

app/src/main/res/layout/activity_main.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@
373373
android:layout_margin="10dp"
374374
android:gravity="center"
375375
android:padding="10dp"
376-
android:text="文本水平渐变效果\n文本水平渐变效果\n单击可取消这种效果"
376+
android:text="文本水平渐变效果文本水平渐变效果文本水平渐变效果文本水平渐变效果文本水平渐变效果文本水平渐变效果\n文本水平渐变效果\n单击可取消这种效果"
377377
android:textSize="18sp"
378378
app:shape_textEndColor="#ED58FF"
379379
app:shape_textGradientOrientation="horizontal"
@@ -386,7 +386,7 @@
386386
android:layout_margin="10dp"
387387
android:gravity="center"
388388
android:padding="10dp"
389-
android:text="文本垂直渐变效果ypgj\n文本垂直渐变效果ypgj\n单击可取消这种效果"
389+
android:text="文本垂直渐变效果ypgj文本垂直渐变效果ypgj文本垂直渐变效果ypgj文本垂直渐变效果ypgj文本垂直渐变效果ypgj\n文本垂直渐变效果ypgj\n单击可取消这种效果"
390390
android:textSize="18sp"
391391
app:shape_textEndColor="#ED58FF"
392392
app:shape_textGradientOrientation="vertical"

0 commit comments

Comments
 (0)