字符串资源
来源:互联网 发布:如何修改淘宝限额 编辑:程序博客网 时间:2024/06/06 02:31
使用string.xml实现第123页第456行
1)string.xml
<span class="tag" style="margin: 0px; padding: 0px; border: none; color: rgb(153, 51, 0); font-weight: bold; font-family: Consolas, 'Courier New', Courier, mono, serif; line-height: 18px;"><</span><span class="tag-name" style="margin: 0px; padding: 0px; border: none; color: rgb(153, 51, 0); font-weight: bold; font-family: Consolas, 'Courier New', Courier, mono, serif; line-height: 18px;">string</span><span style="margin: 0px; padding: 0px; border: none; font-family: Consolas, 'Courier New', Courier, mono, serif; line-height: 18px;"> </span><span class="attribute" style="margin: 0px; padding: 0px; border: none; color: red; font-family: Consolas, 'Courier New', Courier, mono, serif; line-height: 18px;">name</span><span style="margin: 0px; padding: 0px; border: none; font-family: Consolas, 'Courier New', Courier, mono, serif; line-height: 18px;">=</span><span class="attribute-value" style="margin: 0px; padding: 0px; border: none; color: blue; font-family: Consolas, 'Courier New', Courier, mono, serif; line-height: 18px;">"page"</span><span class="tag" style="margin: 0px; padding: 0px; border: none; color: rgb(153, 51, 0); font-weight: bold; font-family: Consolas, 'Courier New', Courier, mono, serif; line-height: 18px;">></span><span style="margin: 0px; padding: 0px; border: none; font-family: Consolas, 'Courier New', Courier, mono, serif; line-height: 18px;">第%1$s页%2$s行</span><span class="tag" style="margin: 0px; padding: 0px; border: none; color: rgb(153, 51, 0); font-weight: bold; font-family: Consolas, 'Courier New', Courier, mono, serif; line-height: 18px;"></</span><span class="tag-name" style="margin: 0px; padding: 0px; border: none; color: rgb(153, 51, 0); font-weight: bold; font-family: Consolas, 'Courier New', Courier, mono, serif; line-height: 18px;">string</span><span class="tag" style="margin: 0px; padding: 0px; border: none; color: rgb(153, 51, 0); font-weight: bold; font-family: Consolas, 'Courier New', Courier, mono, serif; line-height: 18px;">></span><span style="margin: 0px; padding: 0px; border: none; font-family: Consolas, 'Courier New', Courier, mono, serif; line-height: 18px;"> </span>
2)代码
<span style="font-family: Consolas, 'Courier New', Courier, mono, serif; line-height: 18px; margin: 0px; padding: 0px; border: none; background-color: inherit;">String page = getString(R.string.page,</span><span class="string" style="font-family: Consolas, 'Courier New', Courier, mono, serif; line-height: 18px; margin: 0px; padding: 0px; border: none; color: blue; background-color: inherit;">"123"</span><span style="font-family: Consolas, 'Courier New', Courier, mono, serif; line-height: 18px; margin: 0px; padding: 0px; border: none; background-color: inherit;">,</span><span class="string" style="font-family: Consolas, 'Courier New', Courier, mono, serif; line-height: 18px; margin: 0px; padding: 0px; border: none; color: blue; background-color: inherit;">"456"</span><span style="font-family: Consolas, 'Courier New', Courier, mono, serif; line-height: 18px; margin: 0px; padding: 0px; border: none; background-color: inherit;">); </span>
0 0
- 字符串资源
- Windows资源(三)字符串资源
- 改写dll字符串资源
- Android 字符串资源
- xliff和字符串资源
- Android 格式化字符串资源
- Android字符串资源
- Android字符串资源
- Android字符串资源
- android字符串资源化
- Android 字符串资源
- 使用字符串资源
- android 字符串资源国际化
- 字符串资源的使用
- Android 国际化字符串资源
- Android字符串资源
- IDR_MAINFRAME字符串资源含义
- 修改资源字符串
- oracle数据匹配merge into
- [leetcode] 295. Find Median from Data Stream
- LVM逻辑卷镜像实现方法
- Delphi 10 Seattle不支持intel atom?
- RabbIT logoWeb代理服务器 RabbIT
- 字符串资源
- javaweb学习总结(六)——servlet学习二
- win 10 使用Fiddler异常退出
- Android Studio 遇到 maximum Java heap size to 1024 MB
- (三)1月28日视频
- Android WebView 因重定向无法正常goBack()解决方案
- 面试必问问题最佳答案
- iOS开发用swift添加admob广告,iosswiftadmob广告
- ajax 访问服务器