How can I add a "drawable left" icon to a button object?
I mean something like this:
Button button = new Button();
button.setDrawableLeft(R.drawable...);
Use Button.setCompoundDrawablesWithIntrinsicBounds(..)
which relates to android:drawableLeft attribute.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With