String android.content.Context.getString(int resId, Object... formatArgs)
public final String getString (int resId, Object... formatArgs)
Since: API Level 1
Return a localized formatted string from the application's package's default string table, substituting the format arguments as defined in Formatter and format(String, Object...).
Parameters
resId Resource id for the format string
formatArgs The format arguments that will be used for substitution.
举例如下:
XML文件定义,......
阅读全文