예제 #1
0
 @Override
 public void create(SwipeMenu menu) {
   switch (menu.getViewType()) {
     case XiuInfo.TYPE_DEFAULT:
       break;
     case XiuInfo.TYPE_MODIFIABLE:
       createModifiableMenu(menu);
       break;
     case 2:
       createModifiableTopMenu(menu);
       break;
   }
 }
예제 #2
0
 @Override
 public boolean onMenuItemClick(final int position, final SwipeMenu menu, final int index) {
   switch (menu.getViewType()) {
     case XiuInfo.TYPE_DEFAULT:
       break;
     case XiuInfo.TYPE_MODIFIABLE:
       modifiableMenuClick(position, index);
       break;
     case 2:
       topMenuClick(position);
       break;
   }
   return false;
 }