Adding panels to mobile documents

We saw already the use of panels in dashboards; the same technique can be applied to mobile development with an added feature: on mobile devices we can take advantage of the swipe gesture to change between a panel and the other. Additionally, we can design a small panel to be hidden at execution time, and display it as a pop-up information window with more details, for example, when the user taps an attribute.

Getting ready

We will modify the 40 iPad Landscape Portrait views document from the previous recipe; so you need to have completed it before going further. Start by saving that document with a new name: 41 iPad Landscape Portrait with Panels.

How to do it...

Open the document 41 iPad Landscape Portrait with Panels in design mode:

  1. Be sure that the landscape view is selected (that is, you see the light blue background). From the Insert menu click on Panel Stack.
  2. In the warning message that appears click on No.
  3. Drag the cross cursor to draw a rectangle, when you release the mouse button a new gray panel stack is created.
  4. See that there's a toolbar just above the title of the stack, click on the next-to-last button with an a|b icon (tool tip: Rename Panel).
  5. In the Rename Panel dialog, type First Panel as Name and click on OK.
  6. Again, on the toolbar look for the fourth button from the left (tool tip: Add Panel) and click on it, notice that the title has changed.
  7. Repeat steps 4 and 5 to name this as Second Panel.
  8. Repeat step 6, then 4 and 5 to add a third panel and rename it (hum…) Third Panel.
  9. With the second and third buttons on the stack toolbar (tool tips: Display Previous Panel and Display Next Panel) you can move between panels, go back to First Panel.
  10. When the Panel is active, click on the button with a green plus icon on the left just below the title bar.
  11. From the drop-down menu, choose Shape and then Rectangle, answer No to the warning.
  12. A new dark gray rectangle is created and selected inside the First Panel, resize it so that it covers all the space inside this panel.

    Tip

    With the help of Ctrl key you can fine-size objects for your pixel-perfect pleasure…

  13. Right-click inside the Rectangle shape and click on Properties and Formatting….
  14. Go to Format | Color and Lines, set Fill | Color to Dark Blue and click on OK.
  15. Move the cursor to the stack title bar and click it so that the stack toolbar appears.
  16. Now go to the Second Panel and click the green plus icon below the title.
  17. Repeat steps 11 to 14 using Light Blue as Fill | Color value.
  18. Go to the Third Panel using the Display Next Panel button.
  19. And yes…create another rectangle shape to fill the entire Third Panel, giving it the Pale Blue fill color.
  20. Move back to the First Panel and save the document, overwriting the existing number 41, and run the newly saved document.
  21. In the Web Interface, you can move between panels with the small arrows positioned on the right and left of the stack title bar.
  22. In the iPad, you swipe your finger on the panel to switch from one to another. Isn't it cool?

How it works...

Panel stacks are another way of putting a lot of information on a document without crowding the interface, letting the user move around and flip through panels as they please. With the added capability of touch screens this component gets a lot easier to handle.

Each panel is actually a document in itself where you can put grids, graphs, and all other objects.

Designing documents in the Web Interface needs a little time to get used to the various controls, and—especially on small screens—a lot of patience for the correct positioning on the canvas.

The same result can be obtained from the desktop application, where you have a similar Document Editor. Try it yourself and decide which is more comfortable for you. Sometimes, you may need to use one or the other depending on your target platform and audience.

There's more...

Colors, transparencies, and fonts may have different rendering on mobile devices than on desktop monitors. This is due to the operating system, the display technology, the scaling, and other factors. Be sure to test the output on the final user's platform before releasing to production.

Note

You can watch a screencast of this and the next operation at:

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset