> 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-background.md).

# 2021-02-10-Android-Button-Background

Here is how you apply the background color to a button.

```markup
<Button
android:backgroundTint="@android:color/holo_red_light"
/>
```

We would usually require red colored button for destructive acions such as 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" />
```
