<string name="text_9">This may not happen. If this happened, reset in 2–4 mins.</string>
我这样使用它:
AlertDialog alertDialog = new AlertDialog.Builder(this).create();
alertDialog.setMessage(getResources().getText(R.string.text_9));
layout.xml 看起来像
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:paddingTop="15dp" >
<TextView
android:id="@+id/explain_label"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceLarge"
android:textColor="#00000000" />
</LinearLayout>
显示的结果始终是“这可能不会发生。如果发生了”。逗号后的所有内容均未显示。我试图用 ' \ , ' 和 '\u002c' 替换逗号,但都不起作用。如果我删除逗号,则会显示所有内容。
如何替换逗号以替换完整描述?