进来给分了。Android中setCompoundDrawablesWithIntrinsicBounds问题。
现在做一个程序但是调用setCompoundDrawablesWithIntrinsicBounds函数显示的图片大小不同。调用setCompoundDrawablesWithIntrinsicBounds(drawable left ,drawable top, drawable right, drawable bottom)显示的大小不对。但是调用setCompoundDrawablesWithIntrinsicBounds(int left, int top, int right, int bottom)这个重构的函数时显示的大小正确。请问这两个函数区别在那里,怎么把drawable的方法转换成int的方法。急求答案,谢谢!!
RadioButton rb = (RadioButton) getLayoutInflater().inflate(R.layout.radio_button, null);
rb.setCompoundDrawablesWithIntrinsicBounds(null,drawable,null, null);
rb.setCompoundDrawablesWithIntrinsicBounds(0,R.drawable.zhuye1, 0, 0);