Tizen Native API
4.0
|
In this example will have 3 panels, one for each possible orientation. Two of our panels will start out hidden, the third will start out expanded. For each of the panels we will use a label as the content, it's however possible to have any widget(including containers) as the content of panels.
We start by doing some setup, code you should be familiar with from other examples:
And move right to creating our first panel, for this panel we are going to choose the orientation as TOP and toggle it(tell it to hide itself):
For the second panel we choose the RIGHT orientation and explicitly set the state as hidden:
For our third and last panel we won't set the orientation(which means it will use the default: LEFT):
All that is left is running the main loop:
This example will look like this;
- Note:
- The buttons with arrow allow the user to hide/show the panels.