javascript - Navigation SlideMenu with even onChildClick ExpanListview hitch -


i have import sliding menu lib on android expand listview if onchildclick on expandlistview hitch.however not crash user feel uncomfortable. please can me sorry, because english not enough well.

this code of me:

*

[> expanlistview.setonchildclicklistener(new

expandablelistview.onchildclicklistener() { @override public boolean onchildclick(expandablelistview parent, view v, int groupposition, int childposition, long id)]1

  • {

            switch (groupposition)         {             case 0:                  break;             case 1:                 break;             case 2:                 break;             case 3:                 if(childposition==1)                 {                     motolistfragment fragment1 = new motolistfragment();                     getactivity().getsupportfragmentmanager().begintransaction()                             .replace(r.id.item_detail_container, fragment1).addtobackstack(null)                             .commit();                     setviewtoolbar.updatelistbyke();                     ((mainactivity) getactivity()).togglemenu();                 }                 else if (childposition == 0){                     maintenancefragment fragment = new maintenancefragment();                     getactivity().getsupportfragmentmanager().begintransaction()                             .replace(r.id.item_detail_container,fragment).addtobackstack(null)                             .commit();                     ((mainactivity) getactivity()).togglemenu();                 }                 break;         }         return true;     } }); 


Comments

Popular posts from this blog

sequelize.js - Sequelize group by with association includes id -

delphi - Take screenshot in webcam using VFrames in Console Application -

extjs - Set tooltip on click event on the grid cell -