LayoutInflater inflater = (LayoutInflater)context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
View view = inflater.inflate(R.layout.sure_betno_item, null);
LayoutInflater _LayoutInflater = LayoutInflater.from(this);
View _View = _LayoutInflater.inflate(R.layout.main,null);
程序中访问String
public static String getVerName(Context context) {
String verName = context.getResources()
.getText(R.string.app_versionName).toString();
return verName;
}