android RadioButton drawableTop图

2021-11-01  本文已影响0人  CQ_TYL
<?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);
上一篇 下一篇

猜你喜欢

热点阅读