要使用java从android中的资源中获取字符串,我使用
Resources res=this.getResources();
String ch=res.getString(R.string.naeme);
Run Code Online (Sandbox Code Playgroud)
但现在我想使用 java 代码向 strings.xml 添加一个字符串,该怎么做?
| 归档时间: |
|
| 查看次数: |
1104 次 |
| 最近记录: |