cannot see path while moving finger

后端 未结 2 1716
醉酒成梦
醉酒成梦 2021-01-27 06:25

Hey I implementing doodling functoinality in my application. While drawing a line I cannot see the line path while moving the finger. I can see the line when is up ie TouchUp, c

2条回答
  •  失恋的感觉
    2021-01-27 06:44

    Accepted answer will do the job, But for the users who face the issue, which is path count get increase drawing will get slow.The trick work for me was

    yourView.setLayerType(View.LAYER_TYPE_HARDWARE, null);

提交回复
热议问题