Quantcast
Channel: CSDN博客推荐文章
Viewing all articles
Browse latest Browse all 35570

Android 对 strings.xml 的字符串进行格式化

$
0
0

实现了Android 对 strings.xml 的字符串进行格式化
// in strings.xml..
<string name="my_text">Thanks for visiting %s. You age is %d!</string>
     
     
// and in the java code:
String.format(getString(R.string.my_text), "oschina", 33);


作者:u010100925 发表于2013-9-13 9:40:34 原文链接
阅读:17 评论:0 查看评论

Viewing all articles
Browse latest Browse all 35570

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>