Nanda
Nanda

Reputation: 1058

In Android, is there a similar method to the repaint() in java?

In Android, is there a similar method to the repaint() in java?

Upvotes: 2

Views: 2659

Answers (2)

Cheok Yan Cheng
Cheok Yan Cheng

Reputation: 42776

It should be postInvalidate, not invalidate. As repaint() can be called by both UI and non-UI thread. So does postInvalidate.

Upvotes: 2

Pentium10
Pentium10

Reputation: 208002

To force a view to draw, call invalidate().

Upvotes: 2

Related Questions