android安卓代码设置textview样式style
代码设置TextView的样式,引用style样式:
错误的:new TextView(this,null,R.style.text_style);
正确的:new TextView(new ContextThemeWrapper(this, R.style.text_style))
解释:
http://stackoverflow.com/questions/3142067/android-set-style-in-code
代码设置TextView的样式,引用style样式:
错误的:new TextView(this,null,R.style.text_style);
正确的:new TextView(new ContextThemeWrapper(this, R.style.text_style))
解释:
http://stackoverflow.com/questions/3142067/android-set-style-in-code
近期评论