Last active
July 27, 2017 12:15
-
-
Save vestrel00/671a7d55138c17818c41c8f7677c6e75 to your computer and use it in GitHub Desktop.
A: 8 - ui/example_3/parent_fragment/Example3ParentFragment.java
This file contains hidden or 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
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