Code example for ListFragment

Methods: setListAdapter, getActivity, getResources, onActivityCreated

public class ItemListFragment extends ListFragment {
    //private ArrayList<String> 
    public void onActivityCreated(Bundle savedInstanceState) {
        Configuration configuration = getResources().getConfiguration();
        setListAdapter(new ArrayAdapter<String>(getActivity(), android.R.layout.simple_list_item_1, new String[]{"A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O"}  ));
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle b)
        Log.d("ItemListFragment", "onCreateView");
        View view = inflater.inflate(R.layout.item_list_fragment, container, false);
        return view;
Connect your IDE to all the code out there  Get Codota for Java