Changing background colour without increasing GPU overdraw - Android -


i know using android:background change background colour adds layer gpu has draw app. wondering whether there way change set background style without adding layer of gpu overdraw. perhaps done style of sort have tried styles seems redraw on top of normal light theme background.

in res/values folder create file , name it. example theme.xml

<resources>     <style name="theme.nobackground" parent="android:theme">         <item name="android:windowbackground">@null</item>     </style> </resources> 

for parent, use whatever theme using in application manifest. logic that, extending parent theme , setting background attribute.

in manifest file, set new style application theme between application tags.

android:theme="@style/theme.nobackground" 

this remove theme background, have set background each activity in layouts. if want set 1 background application, instead of null assign whatever drawable is. that

<item name="android:windowbackground">@drawable/abc</item> 

romain guy explains in article, tried simplify :

http://www.curious-creature.org/2009/03/04/speed-up-your-android-ui/


Comments

Popular posts from this blog

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -