package com.example.android.sunshine.app;

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);
    }
}

@@ -195,16 +195,161 @@
 wGroup;%0A
+import android.widget.ArrayAdapter;%0Aimport android.widget.ListView;%0A%0Aimport java.util.ArrayList;%0Aimport java.util.Arrays;%0Aimport java.util.List;%0A
 %0A%0A/**%0A *
@@ -456,16 +456,60 @@
 ment %7B%0A%0A
+    ArrayAdapter%3CString%3E mForecastAdapter;%0A%0A
     publ
@@ -690,24 +690,25 @@
 tate) %7B%0A
+%0A
         
 return i
@@ -703,14 +703,23 @@
     
-return
+View rootView =
  inf
@@ -775,16 +775,932 @@
 false);%0A
+        String%5B%5D forecastArray = %7B%0A                %22Today - Sunny - 88/63%22,%0A                %22Tomorrow - Foggy - 70/40%22,%0A                %22Weds - Cloudy  - 72/63%22,%0A                %22Thurs - Asteroids - 75/65%22,%0A                %22Fri - Heavy Rain - 65/56%22,%0A                %22Sat - HELP TRAPPED IN WEATHERSTATION - 60/51%22,%0A                %22Sun - Sunny - 80/68%22%0A        %7D;%0A%0A        List%3CString%3E weekForecast = new ArrayList%3CString%3E(%0A                Arrays.asList(forecastArray)%0A        );%0A%0A        mForecastAdapter =%0A                new ArrayAdapter%3CString%3E(%0A                        getActivity(),%0A                        R.layout.list_item_forecast,%0A                        R.id.list_item_forecast_textview,%0A                        weekForecast%0A                );%0A%0A        ListView listView = (ListView) rootView.findViewById(R.id.listview_forecast);%0A        listView.setAdapter(mForecastAdapter);%0A%0A        return rootView;%0A
     %7D%0A%7D%0A

complete lesson 1