Current, I have 2 Fragments
, which is switch-able through ActionBar
\'s tab.
getSupportActionBar().setNavigationMode(ActionBar.NAVIG
I had the same problem, and tried to follow the suggestion in the error message. I tried the following code, and it worked for me.
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle state) {
if (mMyView == null) {
mMyView = new MyView(getActivity());
} else {
((ViewGroup) mMyView.getParent()).removeView(mMyView);
}
return mPuzzleView;
}