Search code examples
androidresourcesbackground-imagemotorolaxoom

Background image in applications running on Xoom tablet


If I run an application on my Motorola Xoom tablet, there is an image in the background. If I run the same application on the emulator the background in my application is just black. Do you have an idea where I can get this image, which is in the background of Xoom applications?

I need it, because I took a number of screenshots of the app in the emulator for documentation purposes and it doesn't look very good with the black background.


Solution

  • This image is the window background. The default window background is specified using a state list. As the image used for this is stretched - a cheap operation with hardware accelerated drawing but more expensive in software - the state list specifies this background for the android:state_accelerated case. Since the emulator does not currently support hardware accelerated drawing it gets the fallback of solid black instead.