I am developing screen flex mode support in my app

I developed it to support flex mode in my app.
I would like to know how to make it look like the youtube app in the [Flex mode panel] like the screenshot.

You might find your solution in this tutorial, for more development-related information you could found on their portal.