How to give an attractive background

Asked By 0 points N/A Posted on -
qa-featured

I want to change the background of my application by using Eclipse IDE for Android. I did not found any option in my layout/main. Please help me!

SHARE
Best Answer by CapeSteve
Best Answer
Best Answer
Answered By 15 points N/A #127587

How to give an attractive background

qa-featured

 

Background comes in the category of theme. So basically you want to change the theme. For any theme amendment such as background color etc. you need to include a new android xml file in your project.

Go to resource folder named as ‘rsc’ under which there is a folder named as ‘value’ right click on the folder and click on file. A window appears. Write the name color .xml. Keep on main you have to give extension along with the name. Now click on create button.

Below is the sample code. Follow it or write it in the color.xml.

<?xml version=”1.0” encoding=”utf-8”?>

<resource>

<color name=”background”>#3534ffff</color>

</resources>

Now use this resource on main.xml.

Related Questions