Categories
Android 🏴‍☠️

How to change background color in android app

You need to use the android:background property , eg
[sourcecode language=”css”]
android:background="@color/white"
[/sourcecode]
Also you need to add a value for white in the strings.xml
[sourcecode language=”css”]
<color name="white">#FFFFFF</color>
[/sourcecode]