Android Animation Listener

后端 未结 5 1151
眼角桃花
眼角桃花 2020-12-03 04:37

OnTouch of an ImageView I\'m starting a fade in animation:

    myImageView.setOnTouchListener(new View.OnTouchListener() {
    publ         


        
5条回答
  •  暖寄归人
    2020-12-03 05:04

    In case someone needs the solution in kotlin:

    fadeInAnimation.setAnimationListener(object: Animation.AnimationListener {
            override fun onAnimationRepeat(animation: Animation?) {
                TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
            }
    
            override fun onAnimationEnd(animation: Animation?) {
                TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
            }
    
            override fun onAnimationStart(animation: Animation?) {
                TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
            }
    
        })
    

提交回复
热议问题