首页 > 移动平台 > 详细

android :RadioButton 加载图片过大问题

时间:2021-08-04 19:27:32      阅读:27      评论:0      收藏:0      [点我收藏+]

RadioButton[] rb = new RadioButton[3];
rb[0] = rb_home;
rb[1] = rb_setting;
rb[2] = rb_me;
for(RadioButton r:rb){
Drawable[] drawables = r.getCompoundDrawables();
Rect rect = new Rect(0,0,drawables[1].getMinimumWidth()/3,drawables[1].getMinimumHeight()/3);
drawables[1].setBounds(rect);
r.setCompoundDrawables(null , drawables[1] , null ,null);
}

android :RadioButton 加载图片过大问题

原文:https://www.cnblogs.com/wang-jingyuan/p/15100251.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!