Wednesday, 6 March 2013

How to Set background of the layout

Set the background colore of the layout :  when you want to change the back ground color of the layout see the code is useful to you and click on the following link for the code of the colors you want to change.
http://cloford.com/resources/colours/500col.htm




main.xml page:
//set background with the color simply try this one;
//the codes will be different for each color.


android:background="#ffc0cb"




//set background with image try this one 
//copy and paste bike.png into res drawble folder.







android:background="@drawable/bike"

//image background for layout:




No comments:

Post a Comment