A (175)

(Tuis.) #1
CHAPTER 8: Android UI Design: Using Advanced ViewGroup Layout Containers 297

To achieve this change, you will need to cut and paste the construct which you just
constructed at the end of the SlidingPaneLayout UI definition containing the three
UI elements to the top of the container, relocating it directly underneath the
opening tag.


The SlidingPaneLayout algorithm (engine) will take the two highest-level (top-most) child layout container
constructs and put them into the UI pane and the content panes, respectively. In pseudo-code, your
two constructs are structured as follows:















Now that your LinearLayout structure is at the top of your
container, as shown in Figure 8-26, you can again use the Run As ➤ Android Application menu
sequence so that you can see that you have achieved the intended result, shown on the right-hand
side of Figure 8-25.


Figure 8-26. Move the containing the UI widgets to the top of the SlidingPane UI

Free download pdf