> For the complete documentation index, see [llms.txt](https://sagar-r-kothari.gitbook.io/blog/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sagar-r-kothari.gitbook.io/blog/_posts/2021-02-10-android-button-icon.md).

# 2021-02-10-Android-Button-icon

Here is how you apply the an icon to left to a button.

```markup
<Button
android:drawableLeft="@android:drawable/ic_menu_delete"
/>
```

```markup
<Button
    android:id="@+id/someIdentifier"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:backgroundTint="@android:color/holo_red_light"
    android:drawableLeft="@android:drawable/ic_menu_delete"
    android:text="Delete" />
```
