android:drawableLeft margin and/or padding

后端 未结 18 2256
猫巷女王i
猫巷女王i 2020-11-27 09:29

Is it possible to set the margin or padding for the image which we added with the android:drawableLeft?

18条回答
  •  感动是毒
    2020-11-27 09:52

    textView.setCompoundDrawablesWithIntrinsicBounds(AppCompatResources.getDrawable(this,drawable),null,null,null);
    
    addressTitleView.setCompoundDrawablePadding();
    

提交回复
热议问题