No onDraw() happening after invalidate()

Put problem concerning Views, Layouts and other XML-Resources (like AndroidManifest) here.

No onDraw() happening after invalidate()

Postby nanye » Tue Jun 24, 2008 5:05 am

I have met a problem that onDraw() is not called after invalidate().

To be brief, when I add the views(children) into my customized container view(parent), at some time onDraw() could not be called even I have called invalidate() on the child view.I have used both my customized views and original view provided in SDK(such as TextView, ImageView) as the child view. The situation are the same.

I doubt there are some bugs in my customized container view. I derived container view from LinearLayout, and override it onMeasure() and onLayout() method.

I am not quite sure whether codes could be post here, so I can just only describe the problem in text. So I just want to know in what situation that no onDraw() happens when the invalidate() is called?
nanye
Junior Developer
Junior Developer
 
Posts: 12
Joined: Fri Apr 18, 2008 3:55 am

Top

Postby michael_g_hu » Wed Jul 02, 2008 8:57 am

May be the the rect you refresh has not been changed. So redraw is no needed.
michael_g_hu
Developer
Developer
 
Posts: 35
Joined: Fri Mar 21, 2008 9:46 am

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: No registered users and 4 guests