In the last part we will create a whole screen with some responsiveness.
- Analyze the container structure
- Create and format containers
- Rebuild this screen from Android Auto
We will continue with a new screen in our existing app.
First of all we need to understand what the container structure looks like. In this case (and many other cases) it's completely normal to have 4 or more nested layers of containers.
Create the container structure from the example. This is a picture of the resulting tree view:
Step by step breakdown of all the containers and other elements:
Header
: One of the new composite controls. Make sure to drag it to the top-left corner and set theWidth
toParent.Width
con_parent
:- Horizontal container, which we will put underneath the
Header
Height
toParent.Height-Self.Y
to fill the rest of the screenWidth
toParent.Width
- Horizontal container, which we will put underneath the
con_menu
:- inside
con_parent
- normal container
Flexible Width
toOff
Width
to300
Align in container
toStretch
- add the menu component for additional style points
- inside
con_content
:- Vertical container
- inside
con_parent
Fill
toColor.Transparent
Gap
to8
Drop shadow
toNone
Flexible Width
toOn
Align in container
toStretch
con_contentTop
:- Horizontal container
- inside
con_content
Fill
toColor.Transparent
Gap
to8
Drop shadow
toNone
Flexible Height
toOff
Height
to200
con_contentTopLeft
:- Vertical container
- inside
con_contentTop
Fill
toColor.White
Drop shadow
toRegular
Flexible Width
toOn
con_contentTopLeft
:- Vertical container
- inside
con_contentTop
Fill
toColor.White
Drop shadow
toRegular
Flexible Width
toOff
Width
to300
con_contentBottom
:- Vertical container
- inside
con_content
Fill
toColor.White
Drop shadow
toRegular
Flexible Height
toOn
Go play around and add some content to the different containers.