I want to implement a design as visible in the following picture:

![enter image description here](https://i.stack.imgur.com/xymu5.gif)

In the main you can see the small views. When you click one it maximizes to full sceen.

How do I implement this in Android?