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设置该图片
相关文章推荐
- Android 自定义RadioButton 实现文字上下左右方向的图片大小设置
- 安卓 RadioButton的图片大小设置 draw的图片大小设置
- 设置Android中RadioButton的图片大小和位置
- 设置radiobutton中drawable图片的大小,checkBox应该也可以
- RadioButton设置图片大小
- radiobutton设置drawableTop图片的大小
- Android 自定义RadioButton 实现文字上下左右方向的图片大小设置
- RadioButton的图片大小设置
- RadioButton左边设置图片大小,右边设置单选按钮大小的通用方法
- 开发过程中遇到切图的大小的问题,以下是解决设置Android中RadioButton的图片大小和位置
- 在代码中设置RadioButton中图片大小
- 通过代码设置改变radiobutton图片大小
- 如何给RadioButton设置图片大小
- Android 自定义RadioButton 实现文字上下左右方向的图片大小设置
- Radiobutton 设置drawtop图片大小
- 巧用HyperLink绑定显示图片并设置图片大小
- 【JavaScript】onload图片大小设置
- GDI+ 设置不同的分辨率来显示不同大小的图片
- ImageVIew 设置图片大小
- layout中设置图片自适应大小,并且设置最大宽高