diff --git a/statelayout-library/src/main/res/layout/_loading_layout_empty.xml b/statelayout-library/src/main/res/layout/_loading_layout_empty.xml index 8526bd4..f0214dd 100644 --- a/statelayout-library/src/main/res/layout/_loading_layout_empty.xml +++ b/statelayout-library/src/main/res/layout/_loading_layout_empty.xml @@ -22,5 +22,5 @@ android:layout_gravity="center" android:textColor="#444" android:textSize="15sp" - android:text="暂无数据"/> + android:text="@string/nodata"/> \ No newline at end of file diff --git a/statelayout-library/src/main/res/layout/_loading_layout_error.xml b/statelayout-library/src/main/res/layout/_loading_layout_error.xml index 270a1b9..19f2369 100644 --- a/statelayout-library/src/main/res/layout/_loading_layout_error.xml +++ b/statelayout-library/src/main/res/layout/_loading_layout_error.xml @@ -20,7 +20,7 @@ android:paddingRight="14dp" android:textSize="12sp" android:layout_marginTop="15dp" - android:text="加载失败,点击重试" + android:text="@string/load_failed_try_again" android:textColor="#444"/> \ No newline at end of file diff --git a/statelayout-library/src/main/res/values/strings.xml b/statelayout-library/src/main/res/values/strings.xml new file mode 100644 index 0000000..40703b3 --- /dev/null +++ b/statelayout-library/src/main/res/values/strings.xml @@ -0,0 +1,5 @@ + + + 加载失败,点击重试 + 暂无数据 + \ No newline at end of file