I Can't Click Listview In Slidingmenu Fragment, Layout Doesn't Appear
why i can klik listview (ReviewFragment) and its layout does not appear, i have SlidingMenu, when i click my Review menu layout does not appear, please have, maybe in my code i hav
Solution 1:
EDIT:
Don't change this, as I suggested earlier:
case3:
listfragment = newReviewFragment();
break;
Only change the code after switch to this:
if (fragment != null) {
FragmentManagerfragmentManager= getFragmentManager();
fragmentManager.beginTransaction()
.replace(R.id.frame_container, fragment).commit();
// update selected item and title, then close the drawer
mDrawerList.setItemChecked(position, true);
mDrawerList.setSelection(position);
setTitle(navMenuTitles[position]);
mDrawerLayout.closeDrawer(mDrawerList);
} elseif (listfragment != null) {
FragmentManagerfragmentManager= getFragmentManager();
fragmentManager.beginTransaction()
.replace(R.id.frame_container, listfragment).commit();
} else {
// error in creating fragment
Log.e("MainActivity", "Error in creating fragment");
}
Post a Comment for "I Can't Click Listview In Slidingmenu Fragment, Layout Doesn't Appear"