Drawable rg1 = getResources().getDrawable(R.drawable.sel_home); rg1.setBounds(0, 0, 50, 50);//第一0是距左右边距离,第二0是距上下边距离,第三69长度,第四宽度 mRadiogroupHome.setCompoundDrawables(null, rg1, null, null);//只放上面
转载于:https://my.oschina.net/u/3698786/blog/1797956
Drawable rg1 = getResources().getDrawable(R.drawable.sel_home); rg1.setBounds(0, 0, 50, 50);//第一0是距左右边距离,第二0是距上下边距离,第三69长度,第四宽度 mRadiogroupHome.setCompoundDrawables(null, rg1, null, null);//只放上面
转载于:https://my.oschina.net/u/3698786/blog/1797956