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.
精彩评论