标签:
Resources resources=getBaseContext().getResources(); int color=resources.getColor(R.color.colorAccent); String string=resources.getString(R.string.helloWorld); TextView textView= (TextView) findViewById(R.id.textView); textView.setBackgroundColor(color); textView.setText(string);
标签:
原文地址:http://www.cnblogs.com/zqxLonely/p/5548662.html