Android   发布时间:2022-04-28  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了如何在android中的string.xml中添加带有多个段落的长文本大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
当我在之间@L_616_0@许多段落时
<String name="bbb"> ...... </String>

它向我显示了以下错误.

[2014-12-22 14:54:55 - Inspiration] Her father rescued her from the heartless husband  and she was BACk her to the 
[2014-12-22 14:54:55 - Inspiration] G:\adt-bundle-windows-x86_64-20140702\workspace\Inspiration\res\layout\activity_women.xml:11: error: Error: No resource found that matches the given name (at 'text' with value '@String/Women1').

解决方法

试试这个
<String name="Your String name" > This is your String.

       This is the second line of your String.\n\n Third line of your String.</String>

这将导致TextView上的以下内容

This is your String.

This is the second line of your String.

Third line of your String.

大佬总结

以上是大佬教程为你收集整理的如何在android中的string.xml中添加带有多个段落的长文本全部内容,希望文章能够帮你解决如何在android中的string.xml中添加带有多个段落的长文本所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。