MotionLayout prevents ClickListener on all Views

后端 未结 3 2024
自闭症患者
自闭症患者 2021-01-21 20:46

I am using a MotionLayout with a scene-xml:


    <         


        
3条回答
  •  借酒劲吻你
    2021-01-21 21:36

    To setup onClick action on the view, use:

    android:onClick="handleAction"
    

    inside the MotionLayout file, and define "handleAction" in your class.

提交回复
热议问题