Distance image from text on Button

Asked

Viewed 63 times

3

I have this Buttoncom an image and text

inserir a descrição da imagem aqui

xml

<Button
    android: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" />

was wanting to distance the clock from the text , I tried to put a space before the text but ignores the space

1 answer

5


I found the solution.

android:drawablePadding="8dp"

Browser other questions tagged

You are not signed in. Login or sign up in order to post.