所以我在我的strings.xml文件中的字符串中声明,如下所示:Android的元素ID命名
<string name="welcome">Please hit the menu to begin</string>
而且我在main.xml中一个TextView使用它像这样:
<TextView
android:id="@string/welcome"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/welcome"
/>
现在,是给TextView一个ID的正确方法?使用字符串资源作为这样的ID似乎很奇怪。