开发者

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);

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜