有誰知道我可以在android studio中翻譯吐司消息嗎? 我不知道如何將字符串消息轉化爲資源文件(String.xml)像在Android Studio中翻譯吐司消息android studio
String toastMessage1 = "Good Job! ";
String toastMessage2 = "Correct Answers";
if (dNumber >= 90) {
Toast.makeText(
MainActivity.this,
toastMessage1 + String.valueOf(dNumber) + " % " + toastMessage2,
Toast.LENGTH_LONG
).show();
}