Constraint layout Placeholder Kotlin

PHOTO EMBED

Wed Apr 14 2021 08:12:58 GMT+0000 (UTC)

Saved by @GoodRequest.

val onClickListener = View.OnClickListener { view ->
    TransitionManager.beginDelayedTransition(content) //For animation effect
    placeholder.setContentId(view.id) //Set view to placeholder
}

image1.setOnClickListener(onClickListener)
image2.setOnClickListener(onClickListener)
image3.setOnClickListener(onClickListener)
content_copyCOPY