cannot resolve symbol ListView and ArrayAdapter
<p>I am getting cannot resolve symbol for ListView and ArrayAdapter ,trying to resolve for a long time,suggestions plz.
res/layout contains <code>activity_main.xml</code>,<code>fragment.xml</code> and <code>layout_textview.xml</code></p>

<p><strong>fragment.xml</strong></p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context="com.example.sunshine.BlankFragment"&gt;

    &lt;ListView
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:id="@+id/listView"
        android:layout_gravity="center_vertical" &gt;
    &lt;/ListView&gt;
&lt;/FrameLayout&gt;

layout_textview.xml
&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;TextView xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="?attr/listPreferredItemHeight"
    android:id="@+id/text_view"&gt;

&lt;/TextView&gt;
</code></pre>

<p><strong>BlankFragment.java</strong></p>

<pre><code>public class BlankFragment extends Fragment {
    private View rootview;
    private ListView listView;
    private ArrayAdapter&lt;String&gt; itemAdapter;

    public BlankFragment() {
        // 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_blank, container, false);

        String[] forecastArray={"Monday-sunny","Tuesday-cloudy","wednesday-sunny","Thursday-rain","friday-cloudy","saturday-sunny","sunday-cloudy"};
        List&lt;String&gt; weekforecast=new ArrayList&lt;String&gt;(Arrays.asList(forecastArray));
         itemAdapter = new ArrayAdapter&lt;String&gt;(getActivity(), android.R.layout.layout_textview,R.id.text_view, weekforecast);

        listView=(ListView)rootview.findViewById(R.id.listView);
         listView.setAdapter(weekforecast);

        return rootview;
    }

}
</code></pre>