How to add image(left) and text on button?
For illustration:
We can also manage the size of drawable while doing programmatically
Drawable dr = getResources().getDrawable(R.drawable.mag_green); dr.setBounds(0, 0, 43, 40); //Left,Top,Right,Bottom search_bar.setCompoundDrawables(dr, null , null , null);