SetCurrentTab
We find our via the familiar method, then have it call . After that, we get a via , supplying a tag whose purpose is unknown at this time. Given the spec, you call and , then call back on the to register the tab as available for use. Finally, you can choose which tab is the one to show via , providing the 0‑based index of the tab.
The results can be seen in Figures 10‑5 and 10‑6.
Figure 10‑5. The TabDemo sample application, showing the first tab
Figure 10‑6. The same application, showing the second tab
Дата добавления: 2015-05-16; просмотров: 670;