skip to Main Content

Animating UIButton configuration change – Ios swift

Modern UIButton configuration API allows for new way of setting button appearance. However the code below skips the animation entirely. @IBAction func buttonTouched(_ sender: UIButton) { sender.configuration?.background.backgroundColor = .green UIView.animate(withDuration: 0.4, delay: 0.5) { sender.configuration?.background.backgroundColor = .systemMint } } Similar…

VIEW QUESTION

Android Studio – How can I implement another action after the animation has ended? – Java

Can anyone help? ===================================================== I tried like this: Animation zoom, zoom_out; zoomAnimation(); private void zoomAnimation() { zoom= AnimationUtils.loadAnimation(this,R.anim.fast_zoomin); avatar.startAnimation(zoom); //question if (zoom.hasEnded()){ zoomoutAnimation(); } //question } private void zoomoutAnimation() { zoom_out= AnimationUtils.loadAnimation(this,R.anim.fast_zoomout); avatar.startAnimation(zoom_out); }

VIEW QUESTION
Back To Top
Search