开发者

android check box star style

开发者 https://www.devze.com 2023-04-02 05:06 出处:网络
I am new to android development but I know how to create a starStyled checkbox using xml as <CheckBox style=\"?android:attr/starStyle\">

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

精彩评论

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