2021-02-10-Android-Button-Background
Here is how you apply the background color to a button.
<Button
android:backgroundTint="@android:color/holo_red_light"
/>
We would usually require red colored button for destructive acions such as Delete.
<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" />
Last updated
Was this helpful?