This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread 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 Android Security Essentials Live Lessons this week in the Android 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: 5812
    
    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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Change Window Background and overlaying views on them
 
Similar Threads
How to launch third party application in resized window?
Tabbed Activity
How to pass POJOs / data / values between activities?
Grouping servlets
Architecture Help