回答:
では、strings.xmlバックスラッシュを使用して特殊文字(二重引用符など)を簡単にエスケープできます。
"message \"quote string 1\" and \"quote string 2\" end message"
ただし、ビューxml(例:)layout.xmlでは、HTML文字エンティティ(など")を使用する必要があります。
"message "quote string 1" and "quote string 2" end message"
詳しくは、http://developer.android.com/guide/topics/resources/string-resource.htmlをご覧ください。
"シンボルを使用してこのハードコードの問題を解決してください:)
android:text="message "quote string 1""
strings.xmlは大きな問題です。
使用しますescape characters。二重引用符を表示するには\"
あなたのコードは
android:text="message \"quote string 1\" and "quote string 2\" end message"
任意のxmlファイルでUnicodeを使用できます
android:text="message \u0022quote string 1\u0022 and \u0022quote string 2\u0022 end message"
http://www.fileformat.info/info/unicode/char/0022/index.htm C / C ++ / Javaソースコードまで下にスクロールします
<TextView
style="@style/TextStyle"
android:text='message "quote string 1" and "quote string 2" end message'
android:id="@+id/lblAboutPara3"
android:autoLink="web"/>
文字列に二重引用符がある場合は、エスケープする必要があります(\ ")。文字列を単一引用符で囲むことはできません。
strings.xml内
<string name="good_example">This is a \"good string\".</string>
ソース:http : //developer.android.com/guide/topics/resources/string-resource.html