Formatting Strings with xl
iff tags
Frist at string.xml add
<string name="welcome_messages">Hello, %1$s! You have %2$d new messages.</string>
Second. in the program,
String.format(context.getString(R.string.welcome_messages), “Roy”,2);
return Hello, Roy! You have 2 New messages.