Android: ListView in Fragment Layout

view story

http://stackoverflow.com – I am trying to add a ListView onto a Fragment, not just a ListFragment. I want the tabs on top than in the Fragment a ListView. My code compiles fine but crashes when I launch it. Here is the Fragment I am trying to add the ListView too. public static class MainFragment extends Fragment { public static final String ARG_SECTION_NUMBER = "section_number"; public MainFragment() { } @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { // Create a new TextView and set its text to the fragment's sec (HowTos)