<string name="meatShootingMessage">You shot %1$d pounds of meat!</string>int numPoundsMeat = 123;String strMeatFormat = getResources().getString(R.string.meatShootingMessage, numPoundsMeat);
从这里取的例子

<string name="meatShootingMessage">You shot %1$d pounds of meat!</string>int numPoundsMeat = 123;String strMeatFormat = getResources().getString(R.string.meatShootingMessage, numPoundsMeat);
从这里取的例子