Skip to content

Instantly share code, notes, and snippets.

@manishkpr
Created December 30, 2016 08:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save manishkpr/31be6e400a28a784a9e2c1a4332d4b9a to your computer and use it in GitHub Desktop.
Save manishkpr/31be6e400a28a784a9e2c1a4332d4b9a to your computer and use it in GitHub Desktop.
public class LayoutTwo extends Fragment {
public static Fragment newInstance(Context context) {
LayoutTwo f = new LayoutTwo();
return f;
}
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,Bundle savedInstanceState) {
ViewGroup root = (ViewGroup) inflater.inflate(R.layout.layout_two, null);
return root;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment