Android 获取RadioButton、CheckBox左侧选择框的大小

// RadioButton
int width = new RadioButton(getContext()).getButtonDrawable().getIntrinsicWidth();
int height = new RadioButton(getContext()).getButtonDrawable().getIntrinsicHeight();

// CheckBox
int width = new CheckBox(getContext()).getButtonDrawable().getIntrinsicWidth();
int height = new CheckBox(getContext()).getButtonDrawable().getIntrinsicHeight();

记录下,因为功能要重写,注释太乱了,我就要删。。。

但又怕自己忘记,以后又可能用到。。。

猜你喜欢

转载自blog.csdn.net/qq_54087555/article/details/132234353