Skip to content

Commit c21a28b

Browse files
committed
字符串配置
1 parent c800591 commit c21a28b

3 files changed

Lines changed: 7 additions & 2 deletions

File tree

statelayout-library/src/main/res/layout/_loading_layout_empty.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@
2222
android:layout_gravity="center"
2323
android:textColor="#444"
2424
android:textSize="15sp"
25-
android:text="暂无数据"/>
25+
android:text="@string/nodata"/>
2626
</LinearLayout>

statelayout-library/src/main/res/layout/_loading_layout_error.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
android:paddingRight="14dp"
2121
android:textSize="12sp"
2222
android:layout_marginTop="15dp"
23-
android:text="加载失败,点击重试"
23+
android:text="@string/load_failed_try_again"
2424
android:textColor="#444"/>
2525

2626
</LinearLayout>
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<resources>
3+
<string name="load_failed_try_again">加载失败,点击重试</string>
4+
<string name="nodata">暂无数据</string>
5+
</resources>

0 commit comments

Comments
 (0)