Custom view 'ImageButton' has setOnTouchListener called on it but does not override performClick

后端 未结 3 1947
情歌与酒
情歌与酒 2021-01-07 18:31

Well, I know there are some questions regarding this warning, but i still cannot figure out how to get rid of this. I don\'t want to implement the OnTouchListener

3条回答
  •  猫巷女王i
    2021-01-07 19:29

    Your code is OK, if you are sure that your code works like you want, you can just disable this kind of warnings in: File -> Settings -> Editor -> Inspections -> Android -> Lint -> Accessibility -> Accessibility in Custom Views

提交回复
热议问题