Android

资源(resource)转换为String


本文地址: http://blog.csdn.net/caroline_wendy


Android建议资源的动态绑定, 即把string写入资源内, 然后运行动态绑定.
有时须要把资源(resource)ID转换为对应的字符串String.

使用:
String mystring = getResources().getString(R.string.mystring);

就可以.




原文地址:https://www.cnblogs.com/llguanli/p/6756879.html