【文件属性】:
文件名称:restring:Restring是一个可动态替换字符串资源的android库
文件大小:349KB
文件格式:ZIP
更新时间:2021-05-06 10:52:58
android kotlin language translations dynamic-strings
重新串起5.1.2
一种动态替换捆绑字符串或为Android提供新翻译的简便方法。 还支持复数和字符串数组。
1.添加依赖项
// Replace bundled strings dynamically
implementation ' dev.b3nedikt.restring:restring:5.1.2 '
// Intercept view inflation
implementation ' dev.b3nedikt.viewpump:viewpump:4.0.7 '
// Allows to update the text of views at runtime without recreating the activity
implementation ' dev.b3nedikt.reword:reword:4.0.1 '
2.初始化
在您的Application类中初始