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