Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
package com.example.navigationdrawer;
import android.content.Context;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
public class FragmentTwo extends Fragment {
public static Fragment newInstance(Context context) {
FragmentTwo f = new FragmentTwo();
return f;
}
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,Bundle savedInstanceState) {
ViewGroup root = (ViewGroup) inflater.inflate(R.layout.fragment_two, null);
return root;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment