Skip to content

Instantly share code, notes, and snippets.

@nganthony
Last active January 30, 2016 17:42
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 nganthony/7547c7e8f4c1189ce208 to your computer and use it in GitHub Desktop.
Save nganthony/7547c7e8f4c1189ce208 to your computer and use it in GitHub Desktop.
package com.ng.anthony.mininavigationdrawer;
import android.os.Bundle;
import android.support.v4.app.ListFragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
/**
* Created by Anthony on 16-01-25.
*/
public class MasterFragment extends ListFragment {
public View onCreateView (LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
View view = inflater.inflate(R.layout.fragment_master, container);
setListAdapter(new MenuListAdapter(R.layout.row_menu_action_item, getActivity(), MenuActionItem.values()));
return view;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment