package com.example.android.sunshine;

import android.support.v4.app.Fragment;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

/**
 * A placeholder fragment containing a simple view.
 */
public class MainActivityFragment extends Fragment {

    public MainActivityFragment() {
    }

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        return inflater.inflate(R.layout.fragment_main, container, false);
    }
}

@@ -200,16 +200,167 @@
 oup;%0D%0A%0D%0A
+import android.widget.ArrayAdapter;%0D%0Aimport android.widget.ListView;%0D%0Aimport java.util.ArrayList;%0D%0Aimport java.util.Arrays;%0D%0Aimport java.util.List;%0D%0A%0D%0A
 /**%0D%0A * 
@@ -466,24 +466,70 @@
 agment %7B%0D%0A%0D%0A
+    ArrayAdapter%3CString%3E mForecastAdapter;%0D%0A%0D%0A
     public M
@@ -712,24 +712,26 @@
 ate) %7B%0D%0A
+%0D%0A
         
 return i
@@ -726,73 +726,1078 @@
     
-return inflater.inflate(R.layout.fragment_main, container, false)
+String%5B%5D data = %7B%0D%0A                %22Mon 6/23%E2%80%82- Sunny - 31/17%22,%0D%0A                %22Tue 6/24 - Foggy - 21/8%22,%0D%0A                %22Wed 6/25 - Cloudy - 22/17%22,%0D%0A                %22Thurs 6/26 - Rainy - 18/11%22,%0D%0A                %22Fri 6/27 - Foggy - 21/10%22,%0D%0A                %22Sat 6/28 - TRAPPED IN WEATHERSTATION - 23/18%22,%0D%0A                %22Sun 6/29 - Sunny - 20/7%22%0D%0A        %7D;%0D%0A        List%3CString%3E weekForecast = new ArrayList%3CString%3E(Arrays.asList(data));%0D%0A%0D%0A        mForecastAdapter =%0D%0A                new ArrayAdapter%3CString%3E(%0D%0A                        getActivity(), // The current context (this activity)%0D%0A                        R.layout.list_item_forecast, // The name of the layout ID.%0D%0A                        R.id.list_item_forecast_textview, // The ID of the textview to populate.%0D%0A                        weekForecast);%0D%0A%0D%0A        View rootView = inflater.inflate(R.layout.fragment_main, container, false);%0D%0A%0D%0A        ListView listView = (ListView) rootView.findViewById(R.id.listview_forecast);%0D%0A        listView.setAdapter(mForecastAdapter);%0D%0A%0D%0A        return rootView
 ;%0D%0A 

add fake data