[android-developers] How to avoid window background to be redrawn ?
Hi !
I have implemented a custom view which behaves like a Spingboard (I have pages of icons scrolling). It works really good in smartphones. But now I am developping a tablet version and I have noticed a severe performance drop when scrolling. After investigation, it turns out that drawBitmap is faulty. It takes too long. If I remove my png background, everything is smooth again. But I don't wan't to get rid of this background. So I am wondering how I can void the whole screen to be repainted each time I am scrolling. In fact only a few portion of the screen needs to be redrawn. Why is all the screen repainted ? For instance, if you add a new view to the WindowManager and decides to move it changing its layout parameters, only this view and its surroundings are repainted. Why can't my view behave like this ?
Thanks
-- You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home