Hi guys,
I am using LinearLayout implemented in order to paint polygon on it. But my implemented dispatchDraw(Canvas canvas) method is working very slow.
Approximately, one draw cycle finish in 535ms (milliseconds).
To call myLinearLayout.postInvalidate() from non UI thread, using following code :
myActivity.runOnUiThread(new Runnable() {
public void run() {
myLinearLayout.postInvalidate();
}
});
Is there a way to increase drawing speed ?
Please suggest.
Thanks in advance.