Skip to content

Instantly share code, notes, and snippets.

@vestrel00
Created July 27, 2017 11:23
Show Gist options
  • Save vestrel00/63f0805e3a380d54f889775e85f48035 to your computer and use it in GitHub Desktop.
Save vestrel00/63f0805e3a380d54f889775e85f48035 to your computer and use it in GitHub Desktop.
A: 7 - ui/example_2/Example2Activity.java
public final class Example2Activity extends BaseActivity {
@Override
protected void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.example_2_activity);
if (savedInstanceState == null) {
addFragment(R.id.fragment_a_container, new Example2AFragment());
addFragment(R.id.fragment_b_container, new Example2BFragment());
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment