Adding Secondary Menu Items

Let us now add a few secondary menu items to perform step 5 (see Listing 5-10). Secondary menu items, as mentioned earlier, start at 0x30000 and are defined by the constant Menu. CATEGORY_SECONDARY. Their sort-order IDs are higher than regular menu items, so they appear after the regular menu items in a menu. Note that the sort order is the only thing that distinguishes a secondary menu item from a regular menu item. In all other aspects, a secondary menu item works and behaves like any other menu item.

Listing 5-10. Adding Secondary Menu Items

0 0

Post a comment