Drawable drawable=getResources().getDrawable(R.drawable.xx); //获取图片drawable.setBounds(left, top, right, bottom); //设置图片参数xx.setCompoundDrawablesRelativeWithIntrinsicBounds(null,all,null,null); //设置到哪个控件的位置()
代码实例:
Drawable drawable=getResources().getDrawable(R.drawable.xx); //获取图片drawable.setBounds(left, top, right, bottom); //设置图片参数xx.setCompoundDrawablesRelativeWithIntrinsicBounds(null,all,null,null); //设置到哪个控件的位置()
代码实例: