Note: This string resource has the same name as the element ID: edit_message. However, references to resources are always scoped by the resource type (such as id or string), so using the same name does not cause collisions. "
在上面什麼呢給出文本「引用資源總是作用域」在上下文中是指以下XML片段添加字符串資源
<EditText android:id="@+id/edit_message"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:hint="@string/edit_message" />
恩,給我們看你的strings.xml文件....? – Razgriz
保持更改edit_message在String.xml文件中的edit_mes並嘗試在編輯文本提示中使用android:hint =「@ string/edit_mes」 –