Appearance of buttons

It is necessary to make the buttons having color, in the left part - the drawing and the text following the drawing.

    2 answers 2

    Attributes Button in the xml file.

    android:drawableLeft="@mipmap/save" android:drawableStart="@mipmap/save" android:text="Войти в транс" 
    • Thank you very much! It helped, everything turned out. Could you, if it is not difficult, explain the difference between the parameters "... Left" and "... Start", and accordingly "... Right" and "... End" - Pavel Sumarokov
    • Left - left side. Start - upper left corner. Right - right side, End - Lower right corner. It seems so if I am not mistaken. - ruslan
    • OK. Thanks for the help! - Pavel Sumarokov

    You can use TextView, and add the android attribute: drawableLeft = ".."

    • Thank! Applied, everything turned out))) - Pavel Sumarokov