package hippo.app.android.fragment;

import android.os.Bundle;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.firebase.ui.database.FirebaseRecyclerAdapter;
import com.google.firebase.database.DatabaseReference;
import com.google.firebase.database.FirebaseDatabase;

import hippo.app.android.R;
import hippo.app.android.TaskViewHolder;
import hippo.app.android.models.Task;

/**
 * Created by Daniel on 8/6/17.
 */

public class TestViewFragment extends android.support.v4.app.Fragment{
    private static final String TAG = "TestViewFragment";

    // [START define_database_reference]
    private DatabaseReference mDatabase;
    // [END define_database_reference]

    private FirebaseRecyclerAdapter<Task, TaskViewHolder> mAdapter;
    private RecyclerView mRecycler;
    private LinearLayoutManager mManager;

    public TestViewFragment() {}

    @Override
    public View onCreateView (LayoutInflater inflater, ViewGroup container,
                              Bundle savedInstanceState) {
        super.onCreateView(inflater, container, savedInstanceState);
        View rootView = inflater.inflate(R.layout.fragment_all_tasks, container, false);

        // [START create_database_reference]
        mDatabase = FirebaseDatabase.getInstance().getReference();
        // [END create_database_reference]

        mRecycler = (RecyclerView) rootView.findViewById(R.id.messages_list);
        mRecycler.setHasFixedSize(true);

        return rootView;
    }




}

@@ -75,935 +75,228 @@
 oid.
-support.v7.widget.LinearLayoutManager;%0Aimport android.support.v7.widget.RecyclerView;%0Aimport android.view.LayoutInflater;%0Aimport android.view.View;%0Aimport android.view.ViewGroup;%0A%0Aimport com.firebase.ui.database.FirebaseRecyclerAdapter;%0Aimport com.google.firebase.database.DatabaseReference;%0Aimport com.google.firebase.database.FirebaseDatabase;%0A%0Aimport hippo.app.android.R;%0Aimport hippo.app.android.TaskViewHolder;%0Aimport hippo.app.android.models.Task;%0A%0A/**%0A * Created by Daniel on 8/6/17.%0A */%0A%0Apublic class TestViewFragment extends android.support.v4.app.Fragment%7B%0A    private static final String TAG = %22TestViewFragment%22;%0A%0A    // %5BSTART define_database_reference%5D%0A    private DatabaseReference mDatabase;%0A    // %5BEND define_database_reference%5D%0A%0A    private FirebaseRecyclerAdapter%3CTask, TaskViewHolder%3E mAdapter;%0A    private RecyclerView mRecycler;%0A    private LinearLayoutManager mManager;%0A%0A    public TestViewFragment() %7B%7D
+view.LayoutInflater;%0Aimport android.view.View;%0Aimport android.view.ViewGroup;%0A%0Aimport hippo.app.android.R;%0A%0A/**%0A * Created by Daniel on 8/6/17.%0A */%0A%0Apublic class TestViewFragment extends android.support.v4.app.Fragment%7B%0A
 %0A%0A  
@@ -335,17 +335,16 @@
 eateView
- 
 (LayoutI
@@ -385,38 +385,8 @@
 ner,
-%0A                             
  Bun
@@ -423,466 +423,78 @@
     
-super.onCreateView(inflater, container, savedInstanceState);%0A        View rootView = inflater.inflate(R.layout.fragment_all_tasks, container, false);%0A%0A        // %5BSTART create_database_reference%5D%0A        mDatabase = FirebaseDatabase.getInstance().getReference();%0A        // %5BEND create_database_reference%5D%0A%0A        mRecycler = (RecyclerView) rootView.findViewById(R.id.messages_list);%0A        mRecycler.setHasFixedSize(true);%0A%0A        return rootView
+return inflater.inflate(R.layout.testlayout, container, false)
 ;%0A    %7D%0A
 %0A%0A%0A%0A
@@ -489,14 +489,10 @@
 ;%0A    %7D%0A
-%0A%0A%0A%0A
 %7D%0A

test frag stable