weixin_39633165
weixin_39633165
2020-11-22 21:11

onTouchEvent to handle onClickListener

Hi.

How is onTouchEvent supposed to work? I can't find the correct way to handle onClick events. I've tried setOnClickListener and setOnTouchListener without luck. And I can't cast FloatingActionButton to Button because it gives an error.

Can you provide an example? Thanks!

该提问来源于开源项目:Scalified/fab

  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

7条回答

为你推荐