This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Android and the fly likes Change Window Background and overlaying views on them Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Mobile » Android
Bookmark "Change Window Background and overlaying views on them" Watch "Change Window Background and overlaying views on them" New topic
Author

Change Window Background and overlaying views on them

Monu Tripathi
Rancher

Joined: Oct 12, 2008
Posts: 1369
    
    1

I have noticed that on Mobile applications when you transition between Activities, if drawing the View hierarchy of the new Activity takes time we see a blank, dark screen. This is the default background for the Window. I know that this can be avoided most of the times by offloading time consuming tasks to background Threads and making (Activity Life cycle)callbacks return ASAP.

However, my question is -

Is it possible to change this background? Like give it a color consistent with applications theme or maybe even have a video stream playing in background? We can then have Activities just painted on top of it?


Thanks.



[List of FAQs] | [Android FAQ] | [Samuh Varta]
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5823
    
    7

The ListView has the same behavior - background changes to black when scrolling. Not sure if the fix for that would work for your case. Here is a good explanation of the ListView issue and solution:
http://android-developers.blogspot.com/2009/01/why-is-my-list-black-android.html


JBoss In Action
 
jQuery in Action, 2nd edition
 
subject: Change Window Background and overlaying views on them