• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps using eclipse how do i change the background color

In the layout's XML you can set the property android:background to an RGB value like this "#ffff0000" which is an opaque red. But doing it that way kinda stinks.

You're better off defining your colors in a colors.xml file then adding resources and using the resources in your layout XML. This page describes it pretty well.

http://stackoverflow.com/questions/7478023/how-to-set-background-color-in-the-xml-layout



Oh yeah, I moved this thread to Application Development.
 
Are you talking about an app layout or the layout in eclipse?

eclipse has theme in the preferences sections. I switched to the black background and its MUUUUUCH easier on the eyes after a few hours.
 
found the answer finaly >>>how to set the THEME theres a button right above the layout ,,lol ive been tring to change it by changing the back ground color.
thanks all
 
Back
Top Bottom