package com.raychenon.licensedroid.sample;

import android.app.Activity;
import android.os.Bundle;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;

import com.raychenon.licensedroid.OpenSourceAdapter;
import com.raychenon.licensedroid.R;

/**
 * Created by Raymond Chenon
 */
public class OpenSourceActivity extends Activity {


    RecyclerView recyclerView;

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.opensource_activity);

        recyclerView = (RecyclerView) findViewById(R.id.licenseRecyclerView);

        initRecyclerView();

    }

    private void initRecyclerView(){
        OpenSourceAdapter adapter = new OpenSourceAdapter(OpenSourceData.getData());

        LinearLayoutManager llm = new LinearLayoutManager(this);
        llm.setOrientation(LinearLayoutManager.VERTICAL);

        recyclerView.setLayoutManager(llm);
        //recyclerView.addItemDecoration(new SimpleDividerItemDecoration(this));
        recyclerView.setAdapter(adapter);
    }


}

@@ -192,16 +192,60 @@
 lerView;
+%0Aimport com.raychenon.licensedroid.sample.R;
 %0A%0Aimport
@@ -294,45 +294,8 @@
 ter;
-%0Aimport com.raychenon.licensedroid.R;
 %0A%0A/*

fix the build