Android drawableleft drawableTop 设置图片的大小

例子:

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


差不多就是这样 上边从网上随便找的例子,可以看看~最好自己敲下试试

原文地址:https://www.cnblogs.com/woaixingxing/p/5979549.html