package com.android.busolo.apps.wardrobe.engine;

import java.util.ArrayList;
import java.util.List;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.ListFragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AbsListView;

public class PublicStreamFragment extends ListFragment implements
AbsListView.OnScrollListener{
    private static final String TAG = "makeLogTag(SocialStreamFragment.class)";

    private static final String STATE_POSITION = "position";
    private static final String STATE_TOP = "top";

    private static final long MAX_RESULTS_PER_REQUEST = 20;
    private static final String PLUS_RESULT_FIELDS =
            "nextPageToken,items(id,annotation,updated,url,verb,actor(displayName,image)," +
            "object(actor/displayName,attachments(displayName,image/url,objectType," +
            "thumbnails(image/url,url),url),content,plusoners/totalItems,replies/totalItems," +
            "resharers/totalItems))";
    private static final int STREAM_LOADER_ID = 0;

    private String mSearchString;

    private List<Activity> mStream = new ArrayList<Activity>();
    private int mListViewStatePosition;
    private int mListViewStateTop;

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

        final Intent intent = BaseActivity.fragmentArgumentsToIntent(getArguments());

        //mImageLoader = PlusStreamRowViewBinder.getPlusStreamImageLoader(getActivity(), getResources());

        setHasOptionsMenu(true);
    }

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
            Bundle savedInstanceState) {
        if (savedInstanceState != null) {
            mListViewStatePosition = savedInstanceState.getInt(STATE_POSITION, -1);
            mListViewStateTop = savedInstanceState.getInt(STATE_TOP, 0);
        } else {
            mListViewStatePosition = -1;
            mListViewStateTop = 0;
        }
        return super.onCreateView(inflater, container, savedInstanceState);
    }
    
	@Override
	public void onScrollStateChanged(AbsListView view, int scrollState) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void onScroll(AbsListView view, int firstVisibleItem,
			int visibleItemCount, int totalItemCount) {
		// TODO Auto-generated method stub
		
	}
	public void testFunction(){}
    
}
