Notes 非Activity中,使用资源文件: context.getString(R.string.xxx); context.getResources().getDimention(R.dimen.xxx);