Skip to content

Instantly share code, notes, and snippets.

@mbobiosio
Last active May 31, 2018 08:51
Show Gist options
  • Save mbobiosio/b7917e7c8bd50ab6f891c0632d85912d to your computer and use it in GitHub Desktop.
Save mbobiosio/b7917e7c8bd50ab6f891c0632d85912d to your computer and use it in GitHub Desktop.
Fragment NewInstance
//Constructor Class
public AboutFragment() {
}
// New Instance Constructor
public static AboutFragment newInstance() {
AboutFragment fragment = new AboutFragment();
Bundle args = new Bundle();
fragment.setArguments(args);
return fragment;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment