// Path: u148/app/src/main/java/com/chenjishi/u148/widget/LoadingView.java
// public class LoadingView extends FrameLayout {
// 
// 	public TextView textView;
// 	
//     public LoadingView(Context context) {
//         this(context, null);
//     }
// 
//     public LoadingView(Context context, AttributeSet attrs) {
//         this(context, attrs, 0);
//     }
// 
//     public LoadingView(Context context, AttributeSet attrs, int defStyle) {
//         super(context, attrs, defStyle);
//         init();
//     }
// 
//     private void init() {
//         Context context = getContext();
// 
//         LayoutInflater.from(context).inflate(R.layout.empty_view, this);
//     }
// 
//     public void setError(String text) {
//         findViewById(R.id.progress_bar).setVisibility(GONE);
//         textView = (TextView) findViewById(R.id.tv_empty_tip);
//         textView.setText(text);
//         textView.setVisibility(VISIBLE);
//     }
// }


import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.widget.SwipeRefreshLayout;
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 android.widget.FrameLayout;
import android.widget.FrameLayout.LayoutParams;
import com.chenjishi.u148.R;
import com.chenjishi.u148.utils.*;
import com.chenjishi.u148.widget.LoadingView;
import java.util.ArrayList;
import java.util.List;
import static android.view.ViewGroup.LayoutParams.MATCH_PARENT;
import static com.chenjishi.u148.utils.Constants.API_FEED_LIST;
package com.chenjishi.u148.home;




/**
 * Created with IntelliJ IDEA.
 * User: chenjishi
 * Date: 13-11-28
 * Time: 下午3:20
 * To change this template use File | Settings | File Templates.
 */
public class FeedListFragment extends Fragment implements Listener<FeedDoc>, ErrorListener, SwipeRefreshLayout.OnRefreshListener, OnPageEndListener {
    private SwipeRefreshLayout swipeRefreshLayout;

    private FrameLayout mContentView;

    protected int mPage = 1;
    private int category;
    private boolean dataLoaded;

// Path: u148/app/src/main/java/com/chenjishi/u148/widget/LoadingView.java
// public class LoadingView extends FrameLayout {
// 
// 	public TextView textView;
// 	
//     public LoadingView(Context context) {
//         this(context, null);
//     }
// 
//     public LoadingView(Context context, AttributeSet attrs) {
//         this(context, attrs, 0);
//     }
// 
//     public LoadingView(Context context, AttributeSet attrs, int defStyle) {
//         super(context, attrs, defStyle);
//         init();
//     }
// 
//     private void init() {
//         Context context = getContext();
// 
//         LayoutInflater.from(context).inflate(R.layout.empty_view, this);
//     }
// 
//     public void setError(String text) {
//         findViewById(R.id.progress_bar).setVisibility(GONE);
//         textView = (TextView) findViewById(R.id.tv_empty_tip);
//         textView.setText(text);
//         textView.setVisibility(VISIBLE);
//     }
// }


// Path: u148/app/src/main/java/com/chenjishi/u148/home/FeedListFragment.java
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.widget.SwipeRefreshLayout;
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 android.widget.FrameLayout;
import android.widget.FrameLayout.LayoutParams;
import com.chenjishi.u148.R;
import com.chenjishi.u148.utils.*;
import com.chenjishi.u148.widget.LoadingView;
import java.util.ArrayList;
import java.util.List;
import static android.view.ViewGroup.LayoutParams.MATCH_PARENT;
import static com.chenjishi.u148.utils.Constants.API_FEED_LIST;

package com.chenjishi.u148.home;




/**
 * Created with IntelliJ IDEA.
 * User: chenjishi
 * Date: 13-11-28
 * Time: 下午3:20
 * To change this template use File | Settings | File Templates.
 */
public class FeedListFragment extends Fragment implements Listener<FeedDoc>, ErrorListener, SwipeRefreshLayout.OnRefreshListener, OnPageEndListener {
    private SwipeRefreshLayout swipeRefreshLayout;

    private FrameLayout mContentView;

    protected int mPage = 1;
    private int category;
    private boolean dataLoaded;

    private LoadingView mLoadingView;