Phi*_*lip 5 string resources android
从我的活动中调用getResources().getString(...)和之间有什么区别getString()?我读过getText(...)返回程式化的文本,但我什么时候应该使用getResources()而不是直接调用getString()?
如果你获取Android源代码,特别是Context Class,那么它们就没有什么特别之处了
public final String getString(int resId) {
return getResources().getString(resId);
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1345 次 |
| 最近记录: |