Sunday, December 15, 2013

ListView background tuning: Android graphical performance (google io 2013)



Developer options

Show GPU overdraw
Blue 1x
Green 2x
Red 3x
Deep Red 4x

Profile GPU rendering
On screen as bars

If you set own background color on ListView, the android redraw once since android draw windowBackground first.
So, if you move android:background of ListView to style windowBackground, you can reduce one overdraw.

<style name="AppTheme" parent="android:Theme.Light">
<item name="android:windowBackground">@color/dark/background</item>
</style>

https://developers.google.com/events/io/sessions/325418001

http://commondatastorage.googleapis.com/io-2013/presentations/103%20-%20Android%20Graphics%20Performance.pdf




Bonus:



No comments:

Post a Comment