package com.example.android.sunshine.app;


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

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;


/**
 * A simple {@link Fragment} subclass.
 */
public class MainActivityFragment extends Fragment {


    public MainActivityFragment() {
        // Required empty public constructor
    }


    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        // Inflate the layout for this fragment
        View rootView = inflater.inflate(R.layout.fragment_main, container, false);

        String[] data = {
                "Mon 6/23 - Sunny - 31/17",
                "Tue 6/24 - Foggy - 21/8",
                "Wed 6/25 - Cloudy - 22/17",
                "Thurs 6/26 - Rainy - 18/11",
                "Fri 6/27 - Foggy - 21/10",
                "Sat 6/28 - TRAPPED IN WEATHERSTATION - 23/18",
                "Sun 6/29 - Sunny - 20/7"
        };

        List<String> weekForecast = new ArrayList<>(Arrays.asList(data));


        return rootView;
    }

}

@@ -195,16 +195,84 @@
 ewGroup;
+%0Aimport android.widget.ArrayAdapter;%0Aimport android.widget.ListView;
 %0A%0Aimport
@@ -445,16 +445,108 @@
 ent %7B%0A%0A%0A
+    private ArrayAdapter%3CString%3E mForecastAdapter;%0A    private ListView mForecastListView;%0A%0A
     publ
@@ -914,16 +914,486 @@
         
+mForecastListView = (ListView) rootView.findViewById(R.id.listview_forecast);%0A%0A        List%3CString%3E weekForecast = new ArrayList%3C%3E(Arrays.asList(data));%0A        mForecastAdapter = new ArrayAdapter%3C%3E(%0A                getActivity(),%0A                R.layout.list_item_forcast,%0A                R.id.list_item_forecast_textview,%0A                weekForecast);%0A        mForecastListView.setAdapter(mForecastAdapter);%0A%0A        return rootView;%0A    %7D%0A%0A    private final static 
 String%5B%5D
@@ -1402,20 +1402,16 @@
 ata = %7B%0A
-    
         
@@ -1454,20 +1454,16 @@
         
-   
- 
 %22Tue 6/2
@@ -1477,28 +1477,24 @@
 gy - 21/8%22,%0A
-    
             
@@ -1534,20 +1534,16 @@
         
-    
 %22Thurs 6
@@ -1576,20 +1576,16 @@
         
- 
-   
 %22Fri 6/2
@@ -1604,20 +1604,16 @@
 21/10%22,%0A
-    
         
@@ -1676,20 +1676,16 @@
         
-  
-  
 %22Sun 6/2
@@ -1710,122 +1710,10 @@
     
-    %7D;%0A%0A        List%3CString%3E weekForecast = new ArrayList%3C%3E(Arrays.asList(data));%0A%0A%0A        return rootView;%0A    
 %7D
+;
 %0A%0A%7D%0A

Add static data to listview - Lesson 1 complete