<?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);
网友评论