MotionLayout: MotionScene OnClick overrides setOnClickListener

后端 未结 7 1566
庸人自扰
庸人自扰 2021-02-13 19:02

I\'m just starting to play with MotionLayout. I have defined an activity layout using MotionLayout that uses a MotionScene to hide and sh

7条回答
  •  后悔当初
    2021-02-13 19:14

    I found a cleaner and more correct way to do it, you can do this .... OnClick directly from view ..

    Note: It does not work with: only

    PD. I'm sorry, I'm from Mexico and I'm using the translator

    
    
    
    
    fun handleAction(view: View) { 
       //handle click
    }
    

提交回复
热议问题