-3
嗨,大家好我在我的一個類中有很多公共字符串,如下所示。如何將字符串添加到string.xml
public String HeadlightString = "lights not satisfactory",
ReflectorString = "Reflectors and warning devices not satisfactory",
HornString = "Horn and other warnings not satisfactory",
MirrorsString = "Mirrors not satisfactory",
BrakessystemStrings = "Problem with the brakes System";
如何將它們添加到我的string.xml然後將它們調用到我的類中。這將有助於整理我的代碼。
HTTPS得到它:// developer.android.com/guide/topics/resources/string-resource.html 您是否檢查過? – Rahil2952
[字符串資源](https://developer.android.com/guide/topics/resources/string-resource.html)請仔細閱讀。您可以在這裏找到關於你的問題的所有答案 –
沒有我說好的看出,感謝@ Rahil2952 –