Click here to Skip to main content
15,899,679 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how to change the background of your a android pplication ?
Posted

1 solution

if you want to set backgroud color then set properties of layout or directly in xml file to write
android:background="#colorcode"

or
if you want to set backgroud image then set properties of layout or directly in xml file to write
android:background="@drawable/image"


where first of all you want to put your image in res/drawable folder...
 
Share this answer
 
Comments
Member 9239619 16-Oct-12 20:24pm    
hi can u please temme where should i keep my image as in which drawable folder hdpi,mdpi etc
Anil Dalsaniya 18-Oct-12 1:51am    
it depends on your image size and resolution!

put a single image in three different folder (HDPI(72*72),LDPI(48*48),MDPI(36*36)) with the fallowing ratio and put only one layout for that. I hope this is help.
Member 9239619 18-Oct-12 5:46am    
thanks :)
Anil Dalsaniya 25-Oct-12 5:21am    
please vote 4 it!!!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900