Android Animation Listener

后端 未结 5 1164
眼角桃花
眼角桃花 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:00

    If you only need an end-action it would suffice to use .withEndAction(Runnable)

    fadeInAnimation.withEndAction(new Runnable() {
        @Override
        public void run() {
            ... do stuff
        }
    })
    

提交回复
热议问题