Skip to content

Instantly share code, notes, and snippets.

@vestrel00
Last active July 27, 2017 12:15
Show Gist options
  • Save vestrel00/671a7d55138c17818c41c8f7677c6e75 to your computer and use it in GitHub Desktop.
Save vestrel00/671a7d55138c17818c41c8f7677c6e75 to your computer and use it in GitHub Desktop.
A: 8 - ui/example_3/parent_fragment/Example3ParentFragment.java
public final class Example3ParentFragment extends BaseFragment implements View.OnClickListener {
...
@Override
public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {
super.onViewCreated(view, savedInstanceState);
if (savedInstanceState == null) {
addChildFragment(R.id.child_fragment_container, new Example3ChildFragment());
}
...
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment