Wednesday, 14 June 2017

How to change Background Color in Android


Changing the background color of the Layout or screen in android is very simple to do.

Open a New Project in Android Eclipse


Enter the Project Name For Ex:  BackgroundColor


and click Next till the Finish comes and also click Finish.

The new Project will be created


Click the activity_main.xml below this image to open the xml file.


Add the following line inside the Relative layout tag



Then save the file and open the Graphics Layout you can see the background color has been changed.


The #EAAC00 is HTML color code , you get more colors from the internet.

You can choose your desired background colors for your android app.

Also Read:

How to change Button color in Android

No comments :

Post a Comment