如何在android中的string.xml中添加带有多个段落的长文本

前端之家收集整理的这篇文章主要介绍了如何在android中的string.xml中添加带有多个段落的长文本前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
当我在之间添加许多段落时
<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.
原文链接:https://www.f2er.com/android/309704.html

猜你在找的Android相关文章