I am trying to do the accordion Sub Menu for Android. For Example. I have slide menu (Sliding Drawer Menu - Facebook Like Menu) in the Sliding Drawer menu if i select any of the items i am trying to get the accordion submenu. This is what i tried.
@Override
public void onSlideMenuItemClick(int itemId) {
switch (itemId) {
case R.id.item_one:
Toast.makeText(this, "LSM Item one selected", Toast.LENGTH_SHORT).show();
break;
case R.id.item_two:
Toast.makeText(this, "Item two selected", Toast.LENGTH_SHORT).show();
break;
case R.id.item_fourteen:
Toast.makeText(this, "Item fourteen selected", Toast.LENGTH_SHORT).show();
break;
case R.id.item_fifteen:
Toast.makeText(this, "Item fifteen selected", Toast.LENGTH_SHORT).show();
break;
}
}