View Single Post
Old 09-11-2007, 02:47 PM   #2 (permalink)
Skipper_Joe
Talking BlackBerry Encyclopedia
 
Skipper_Joe's Avatar
 
Join Date: Jan 2007
Location: Kharkov, Ukraine
Model: 8300
Carrier: N/A
Posts: 237
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

use static method MenuItem.separator(int ordinal):
Code:
protected void makeContextMenu(ContextMenu contextMenu) {
    contextMenu.addItem(feedListScreen);
    contextMenu.addItem(MenuItem.separator(10)); // actual value depends on ordinal of other menuitems
    contextMenu.addItem(syncScreen);
    contextMenu.addItem(toolsScreen);
    contextMenu.addItem(helpScreen);
  }
Offline   Reply With Quote