Skip to content

Instantly share code, notes, and snippets.

@vestrel00
Created July 26, 2017 18:51
Show Gist options
  • Save vestrel00/09abb04bfb2efaea7392645ffb698b55 to your computer and use it in GitHub Desktop.
Save vestrel00/09abb04bfb2efaea7392645ffb698b55 to your computer and use it in GitHub Desktop.
A: 6 - ui/example_1/Example1Activity.java
public final class Example1Activity extends BaseActivity {
@Override
protected void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.example_1_activity);
if (savedInstanceState == null) {
addFragment(R.id.fragment_container, new Example1Fragment());
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment