任何人都可以幫助我?我想通過string.xml中的編碼添加字符串值
我正在這樣做。
Android在String.xml中設置字符串值
String name = getResources().getString(R.string.name);
if(name.lenght() < 1){
// getResources().setString(R.string.name);??????????????????????
}
我string.xml是
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="name"></string>
</resources>
有誰知道我可以在string.xml加名字的價值,雖然編碼。 謝謝!