美文网首页
android RadioButton drawableTop图

android RadioButton drawableTop图

作者: CQ_TYL | 来源:发表于2021-11-01 20:15 被阅读0次
    <?xml version="1.0" encoding="utf-8"?>
    <selector xmlns:android="http://schemas.android.com/apk/res/android">
        <item android:drawable="@mipmap/nav_zyjd_selected" android:state_checked="true"/>
        <item android:drawable="@mipmap/nav_zyjd" android:state_checked="false"/>
    </selector>
    
     int width = MyUtils.dip2px(TrialingActivity.this, 11);
     int heigth = MyUtils.dip2px(TrialingActivity.this, 12);
      Drawable dispute = getResources().getDrawable(R.drawable.selector_trialing_dispute);
      dispute.setBounds(0, 0,width ,heigth);
      rb_dispute.setCompoundDrawables(null, dispute, null, null);
    

    相关文章

      网友评论

          本文标题:android RadioButton drawableTop图

          本文链接:https://www.haomeiwen.com/subject/bmltzltx.html