• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Tim Cooke
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Jeanne Boyarsky
Saloon Keepers:
  • Stephan van Hulst
  • Carey Brown
  • Tim Holloway
  • Piet Souris
Bartenders:

Change Window Background and overlaying views on them

 
Rancher
Posts: 1369
1
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.


 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
I knew I would regret that burrito. But this tiny ad has never caused regrets:
The Low Tech Laboratory Movie Kickstarter is LIVE NOW!
https://www.kickstarter.com/projects/paulwheaton/low-tech
reply
    Bookmark Topic Watch Topic
  • New Topic