'Button background color is not getting change in android studio
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" />
Solution 1:[1]
use
android:backgroundTint="@color/white"
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Niaj Mahmud |
