Override onDraw() or draw()?

后端 未结 6 973
隐瞒了意图╮
隐瞒了意图╮ 2021-02-18 20:27

My project is based on surfaceView and up until now I\'ve had all of my rendering in onDraw which I am overriding. All seemed to be OK.

However, I\'ve just updated my S

6条回答
  •  挽巷
    挽巷 (楼主)
    2021-02-18 21:00

    As friiky said, @SuppressLint("WrongCall") fixed my problem. However it must be in front of the method name, not the above.

    What I did is put mouse over the error code, right click and select Add @SuppressLint("WrongCall")

提交回复
热议问题