amulyakhare/TextDrawable

Can not be used in the RadioButton?

liangxianshen opened this issue · 1 comments

Invalid setting with Border.
TextDrawable drawable = TextDrawable.builder() .beginConfig() .width(com.duia.duiba.kjb_lib.util.KJBUtils.dip2px(context , 17)) .height(com.duia.duiba.kjb_lib.util.KJBUtils.dip2px(context , 17)) .withBorder(com.duia.duiba.kjb_lib.util.KJBUtils.dip2px(context , 2)) .endConfig() .buildRound("F", 0xff64b5f6); radioButton.setCompoundDrawables(drawable , null , null , null);

Call radioButton.setButtonDrawable () can.