我不得不从我的资源/价值档案中压缩这两条线:
<string name="Toast_Memory_GameWon_part1">you found ALL PAIRS ! on </string>
<string name="Toast_Memory_GameWon_part2"> flips !</string>
我这样做:
String message_all_pairs_found = getString(R.string.Toast_Memory_GameWon_part1)+total_flips+getString(R.string.Toast_Memory_GameWon_part2);
Toast.makeText(this, message_all_pairs_found, 1000).show();
But the spaces at the end of the first string and at the beginning of the second string have disappeared (when the Toast is shown) ...
我应该做些什么?
我猜测答案是:http://developer.android.com/app/java/util/regex/ Pack-descr.html#impnotes”rel=“noreferer”>。
还是使用&
用于“&”特性?