package com.uwflow.flow_android.fragment;


import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ListView;
import com.uwflow.flow_android.R;
import com.uwflow.flow_android.adapters.CourseReviewAdapter;
import com.uwflow.flow_android.adapters.ProfileFriendAdapter;
import com.uwflow.flow_android.entities.CourseReview;
import com.uwflow.flow_android.entities.Friend;
import android.graphics.Bitmap;

import java.util.ArrayList;

/**
 * Created by wentaoji on 2014-02-22.
 */
public class ProfileFriendFragment extends Fragment {

    protected ListView mProfileFriendList;
    protected View rootView;

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        // Inflate the layout for this fragment
        rootView = inflater.inflate(R.layout.profile_friend_layout, container, false);
        mProfileFriendList = (ListView)rootView.findViewById(R.id.friend_list);

        // TODO: replace this arraylist with whatever real data source
        ArrayList<Friend> friendsList = new ArrayList<Friend>();
        for (int i = 0; i < 7; i++) {
            String name = "BestFriend" + i;
            String date = i+" Mutual Classes";
            friendsList.add(new Friend(name, date, null));
        }

        mProfileFriendList.setAdapter(new ProfileFriendAdapter(friendsList, getActivity()));
        return rootView;
    }

    @Override
    public void onActivityCreated(Bundle savedInstanceState){
        super.onActivityCreated(savedInstanceState);

    }


}

@@ -107,33 +107,8 @@
 nt;%0A
-import android.util.Log;%0A
 impo
@@ -266,69 +266,8 @@
 .R;%0A
-import com.uwflow.flow_android.adapters.CourseReviewAdapter;%0A
 impo
@@ -368,177 +368,45 @@
 ies.
-CourseReview;%0Aimport com.uwflow.flow_android.entities.Friend;%0Aimport android.graphics.Bitmap;%0A%0Aimport java.util.ArrayList;%0A%0A/**%0A * Created by wentaoji on 2014-02-22.%0A */
+Friend;%0A%0Aimport java.util.ArrayList;%0A
 %0Apub
@@ -1213,16 +1213,20 @@
 te, null
+, 10
 ));%0A    

fix master