Android MotionLayout doesn't show animation
I am creating animation in splashScreen with motionLayout. But my animation doesn't work, instead it immediatly shows the ending positions of the elements on the screen. Here is my code:
SplashActivity:
class SplashActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_splash)
motionLayout.transitionToEnd()
val handler = Handler()
handler.postDelayed( {...