Home | History | Annotate | Download | only in articles

Lines Matching full:background

10 background drawable.</p>
12 <p>The term <em>window background</em> is a bit misleading, however. When you
23 window's background drawable. Calling
25 from your <code>Activity</code> changes the background of the window by changing
26 the <code>DecorView</code>'s background drawable. As mentioned before, this
30 <p>If you are using the standard Android themes, a default background drawable
33 applications, this background drawable works just fine and can be left alone. It
37 <div style="text-align: center;"><img src="images/window_background.png" alt="An opaque user interface doesn't need a window background"></div>
39 <p>You can see on this screenshot that the window's background is invisible,
46 background drawable. Since the user interface is entirely opaque, drawing the
47 background is simply wasteful. Removing the background improves the performance
50 <div style="text-align: center;"><img src="images/window_background_null.png" alt="Remove the background for faster drawing"></div>
57 default background was using a more expensive drawable.</p>
59 <p>Removing the window's background can be achieved very easily by using
82 window's background is also a fantastic way to improve the <em>perceived</em>
84 be applied to activities that use a custom background, like a texture or a logo.
88 <div style="text-align: center;"><img src="images/shelves2.png" alt="Textured backgrounds are good candidates for window's background"></div>
90 <p>If this application simply set the wooden background in the XML layout or in
92 default theme and its dark background. The wooden texture would only appear
96 defines the wooden background in a theme, picked up by the system as soon as the
99 memory and disk usage, the background is a tiled texture defined in
116 is simply using a tiled background that looks exactly like the loading tiles of
120 an activity with an opaque UI or a custom background, remember to change the
121 window's background.</p>