Distancing image from text in Button

3

I have this Buttoncom image and text

xml

<Buttonandroid:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:text="@string/notificacao"
    android:drawableLeft="@drawable/alarm"
    android:background="@null"
    android:id="@+id/btNotificacao"
    android:layout_gravity="center_horizontal" />

I was trying to distance the text clock, tried to put a space before the text more ignores the space

    
asked by anonymous 31.07.2015 / 19:36

1 answer

5

I found the solution.

android:drawablePadding="8dp"
    
31.07.2015 / 19:40