/*
 * Copyright (C) 2016 The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.example.android.recyclerview;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;

public class MainActivity extends AppCompatActivity {

    // TODO (1) Create a private static final int called NUM_LIST_ITEMS and set it equal to 100

    // TODO (2) Create a GreenAdapter variable called mAdapter
    // TODO (3) Create a RecyclerView variable called mNumbersList

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        // TODO (4) Use findViewById to store a reference to the RecyclerView in mNumbersList

        // TODO (5) Create a LinearLayoutManager variable called layoutManager
        // TODO (6) Use setLayoutManager on mNumbersList with the LinearLayoutManager we created above

        // TODO (7) Use setHasFixedSize(true) to designate that the contents of the RecyclerView won't change an item's size

        // TODO (8) Store a new GreenAdapter in mAdapter and pass it NUM_LIST_ITEMS

        // TODO (9) Set the GreenAdapter you created on mNumbersList
    }
}

@@ -730,16 +730,117 @@
 ctivity;
+%0Aimport android.support.v7.widget.LinearLayoutManager;%0Aimport android.support.v7.widget.RecyclerView;
 %0A%0Apublic
@@ -983,16 +983,67 @@
 l to 100
+%0A    private static final int NUM_LIST_ITEMS = 100;
 %0A%0A    //
@@ -1099,16 +1099,52 @@
 Adapter%0A
+    private GreenAdapter mAdapter;%0A%0A
     // T
@@ -1197,24 +1197,63 @@
 mNumbersList
+%0A    private RecyclerView mNumbersList;
 %0A%0A    @Overr
@@ -1499,16 +1499,85 @@
 bersList
+%0A        mNumbersList = (RecyclerView) findViewById(R.id.rv_numbers);
 %0A%0A      
@@ -1649,16 +1649,92 @@
 Manager%0A
+        LinearLayoutManager layoutManager = new LinearLayoutManager(this);%0A%0A
         
@@ -1827,16 +1827,70 @@
 ed above
+%0A        mNumbersList.setLayoutManager(layoutManager);
 %0A%0A      
@@ -2007,16 +2007,60 @@
 m's size
+%0A        mNumbersList.setHasFixedSize(true);
 %0A%0A      
@@ -2136,16 +2136,69 @@
 ST_ITEMS
+%0A        mAdapter = new GreenAdapter(NUM_LIST_ITEMS);
 %0A%0A      
@@ -2256,20 +2256,63 @@
 NumbersList%0A
+        mNumbersList.setAdapter(mAdapter);%0A
     %7D%0A%7D%0A

Complete TODOs for T03.04 WiringUpRecyclerView exercise