Android Utililty Methods Menu Set

List of utility methods to do Menu Set

Description

The list of methods to do Menu Set are organized into topic(s).

Method

voidaddItems2Menu(Menu menu, int idx, String nume, ViewPager vp)
add Items Menu
final SubMenu smenu = menu.addSubMenu(0, idx, 0, nume);
for (int i = 0; i < vp.getAdapter().getCount(); i++) {
    if (i != vp.getCurrentItem())
        smenu.add(0, idx + i + 1, 0, vp.getAdapter()
                .getPageTitle(i));