您的位置:首页 > 其它

radioButton图片大小的设置

2017-07-13 11:32 232 查看
Drawable drawableA = getResources().getDrawable(R.drawable.xxx);//获得图片的资源drawableA.setBounds(0, 0, dip2px(this, 27), dip2px(this, 37));	//设置图片大小,具体看源码radioButton.setCompoundDrawables(null, drawableA, null, null);	//为radioButton设置该图片
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: