How android.view.View.invalidate(int l, int t, int r, int b) make only the dirty area redrawn?

by FBear » Sat, 07 Mar 2009 10:54:21 GMT


Sponsored Links
 android.view.View.invalidate(int l, int t, int r, int b) can mark the
the area defined by the rect (l,t,r,b) as needing to be drawn.
But how does View update only the dirty area specified by the rect?
Is it wise enough to redraw only the dirty area even if the onDraw is
customized to update the whole view?

I read some sources and searched in google developer group. No answer
to this question was found.

Would anybody please kindly explain that to me?

Thanks in advance.

FBear

--~--~---------~--~----~------------~-------~--~----~



How android.view.View.invalidate(int l, int t, int r, int b) make only the dirty area redrawn?

by FBear » Sat, 07 Mar 2009 17:21:35 GMT


 Do you mean that onDraw(Canvas) will ignore the drawing call in it
when the affected area is not in the dirty area?
I can hardly believe it it so wise.
How about the drawing call which affected area overlaps with the dirty
area?




--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


How android.view.View.invalidate(int l, int t, int r, int b) make only the dirty area redrawn?

by FBear » Sat, 07 Mar 2009 22:17:08 GMT


 Thank you very much!



--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. How to get the phone call talking status

Dears,

    How can i get the status whether the phone call is talking or not

BRS


--~--~---------~--~----~------------~-------~--~----~

2. java.lang.SecurityException: Permission Denial in inserting an entry to Database

Hi,

I am getting the following SecurityException when I try to insert an
entry to DB:
Can you please tell me how can I fix my issue?

/AndroidRuntime(  857): Caused by: java.lang.SecurityException:
Permission Denial: writing com.mycompany.myapp uri
content://com.mycompany.myapp.settings/favorites?notify=true from
pid=857, uid=10004 requires
om.mycompany.myapp.permission.WRITE_SETTINGS
E/AndroidRuntime(  857):        at 
android.os.Parcel.readException(Parcel.java:1234)
E/AndroidRuntime(  857):        at
android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:145)
E/AndroidRuntime(  857):        at
android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:111)
E/AndroidRuntime(  857):        at
android.content.ContentProviderProxy.insert(ContentProviderNative.java:340)
E/AndroidRuntime(  857):        at
android.content.ContentResolver.insert(ContentResolver.java:507)

Thank you.

--~--~---------~--~----~------------~-------~--~----~

3. InputMethod get activate on non-textview

4. 1.5 SDK Media Question: why doesn't android.media.AudioFormat have option for AMR-NB?

5. Where all the OpenGL/FPS games for Android?

6. How do live folders register for change in content?

7. Communications between Views