-1

Hey I have changed the button background to white color but it is not reflected in the design of app. instead of white color the design is showing it as purple.

 <Button
            android:id="@+id/button"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:layout_marginTop="5dp"
            android:layout_marginEnd="5dp"
            android:layout_marginRight="5dp"
            android:layout_weight="1"
            android:background="@color/white"
            android:text="Tasbeeh \nFatima"
            android:textColor="#070606"
            android:textSize="19sp"
            android:textStyle="bold|italic" />
  • 1
    Does this answer your question? [Android : change button text and background color](https://stackoverflow.com/questions/19400722/android-change-button-text-and-background-color) – Praveen G Feb 18 '22 at 15:04

1 Answers1

0

use

android:backgroundTint="@color/white"
Niaj Mahmud
  • 399
  • 3
  • 10