package com.sanchez.fmf.fragment;

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

import com.sanchez.fmf.R;

public class MarketListFragment extends Fragment {

    public static MarketListFragment newInstance() {
        MarketListFragment fragment = new MarketListFragment();
//        Bundle args = new Bundle();
//        args.putString(ARG_PARAM1, param1);
//        args.putString(ARG_PARAM2, param2);
//        fragment.setArguments(args);
        return fragment;
    }

    public MarketListFragment() {
    }

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
//        if (getArguments() != null) {
//            mParam1 = getArguments().getString(ARG_PARAM1);
//            mParam2 = getArguments().getString(ARG_PARAM2);
//        }
    }

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        return inflater.inflate(R.layout.fragment_market_list, container, false);
    }
}

@@ -94,16 +94,117 @@
 agment;%0A
+import android.support.v7.widget.LinearLayoutManager;%0Aimport android.support.v7.widget.RecyclerView;%0A
 import a
@@ -319,59 +319,546 @@
 .R;%0A
-%0Apublic class MarketListFragment extends Fragment %7B
+import com.sanchez.fmf.adapter.MarketAdapter;%0Aimport com.sanchez.fmf.model.MarketListItemModel;%0Aimport com.sanchez.fmf.util.MarketUtils;%0Aimport com.sanchez.fmf.util.ViewUtils;%0A%0Aimport java.util.ArrayList;%0A%0Aimport butterknife.Bind;%0Aimport butterknife.ButterKnife;%0A%0Apublic class MarketListFragment extends Fragment %7B%0A%0A    @Bind(R.id.market_list)%0A    RecyclerView mMarketList;%0A    @Bind(R.id.fragment_default_suggestion)%0A    View mSuggestion;%0A%0A    private RecyclerView.Adapter mAdapter;%0A    private RecyclerView.LayoutManager mLayoutManager;
 %0A%0A  
@@ -1664,22 +1664,24 @@
         
-return
+View v =
  inflate
@@ -1740,16 +1740,781 @@
 false);%0A
+        ButterKnife.bind(this, v);%0A%0A        mLayoutManager = new LinearLayoutManager(getContext());%0A        mMarketList.setLayoutManager(mLayoutManager);%0A%0A        ArrayList%3CMarketListItemModel%3E mMarkets = MarketUtils.getExampleMarkets();%0A%0A        mAdapter = new MarketAdapter(mMarkets);%0A        mMarketList.setAdapter(mAdapter);%0A%0A        return v;%0A    %7D%0A%0A    @Override%0A    public void onViewCreated(View view, Bundle savedInstanceState) %7B%0A        mMarketList.postDelayed(new Runnable() %7B%0A            @Override%0A            public void run() %7B%0A                int shortAnimation = getResources().getInteger(android.R.integer.config_shortAnimTime);%0A                ViewUtils.crossfadeTwoViews(mMarketList, mSuggestion, shortAnimation);%0A            %7D%0A        %7D, 3000);%0A
     %7D%0A%7D%0A

Create list and bind fake markets after 3s