【发布时间】:2017-01-22 20:18:19
【问题描述】:
正在开发一个简单的 android 测验应用程序。我想向用户询问有关在 xml 和 java 文件中制作的 cmets 的问题。如何在 strings.xml 文件中写入 xml cmets 以显示在屏幕上?
<string name="comments_1"> // </string>
<string name="comments_2"> <!-- --></string>
<string name="comments_3"> /** */</string>
<CheckBox
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/comments_2"/>
【问题讨论】:
-
应用程序是否从互联网获取问题?
-
暂时没有,这个应用程序对我来说只是一个额外的资源。我想在继续学习的同时继续建设。