android - postInvalidate() is working slow? -
I am using LinearLayout applied to paint the polygon on it.
A draw cycle has ended in about 535 millimeters (milliseconds).
Thread to call myLinearLayout.postInvalidate () from non-UI, using the following code:
myActivity.runOnUiThread (new Runnabel () {public void run () {MyLinearLayout.postInvalidate ();}});
It has been used to invalidate the view from non-UI threads. You do not need to call again with runOnUiThread
.
Comments
Post a Comment