Android Button drawableLeft - how to hardcode it (no xml)
문제
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.
제휴하지 않습니다 StackOverflow