android check box star style
I am new to android development but I know how to create a starStyled checkbox using xml as
<CheckBox style="?android:attr/starStyle">
But how to set starStyle using code i.e, by creating check box like this
Ch开发者_Python百科eckBox cb=new CheckBox(this);
instead of using the constructor CheckBox cb=new CheckBox(this); ,why don't you use CheckBox cb=new CheckBox(this,null,android.R.attr.starStyle);
精彩评论