the idea is to create cardview with only one card visible at time and I got difficulties in implementing cardview in Main.kt file.
I took the sampleCode