Created
October 28, 2014 15:45
-
-
Save theSociableme/e0c3a5d839b8711e6ff5 to your computer and use it in GitHub Desktop.
Navigator Content Frame without id in xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Override | |
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { | |
createContentView(inflater, container, savedInstanceState); | |
if (LIGER.LOGGING) { | |
Log.d(LIGER.TAG, "PageFragment.onCreateView() " + pageName); | |
} | |
if (isDialog) { | |
return super.onCreateView(inflater, container, savedInstanceState); | |
} | |
FragmentManager childFragmentManager = getChildFragmentManager(); | |
FragmentTransaction ft = childFragmentManager.beginTransaction(); | |
for(PageFragment page : mFragDeck){ | |
page.addFragments(ft, mNavigatorContentFrame.getId()); | |
page.mContainer = this; | |
} | |
ft.commit(); | |
return mNavigatorContentFrame; | |
} | |
protected View createContentView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { | |
mNavigatorContentFrame = inflater.inflate(R.layout.navigator_layout, container, false); | |
return mNavigatorContentFrame; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment