設置Radiogroup圖片大小

Drawable rg1 = getResources().getDrawable(R.drawable.sel_home);
rg1.setBounds(0, 0, 50, 50);//第一0是距左右邊距離,第二0是距上下邊距離,第三69長度,第四寬度
mRadiogroupHome.setCompoundDrawables(null, rg1, null, null);//只放上面
相關文章
相關標籤/搜索