// Path: pullrefresh/src/main/java/com/nicksong/refreshAndLoad/widget/support/impl/Loadable.java
// public interface Loadable {
// 
//     void setPullRefreshLayout(PullRefreshLayout refreshLayout);
// 
//     boolean onScroll(float y);
// 
//     void onScrollChange(int state);
// 
//     boolean onStartFling(float offsetTop);
// 
//     void startLoad();
// 
//     void stopLoad();
// }
// 
// Path: pullrefresh/src/main/java/com/nicksong/refreshAndLoad/widget/support/impl/Refreshable.java
// public interface Refreshable {
// 
//     void setPullRefreshLayout(PullRefreshLayout refreshLayout);
// 
//     boolean onScroll(float y);
// 
//     void onScrollChange(int state);
// 
//     boolean onStartFling(float offsetTop);
// 
//     void startRefresh();
// 
//     void stopRefresh();
// }


import android.content.Context;
import android.util.AttributeSet;
import android.view.View;
import android.view.ViewGroup;
import com.nicksong.refreshAndLoad.widget.support.impl.Loadable;
import com.nicksong.refreshAndLoad.widget.support.impl.Refreshable;
        }
        return false;
    }

    public void startRefresh() {
        if (mHeader != null && hasHeader) {
            mHeader.startRefresh();
        }
    }

    public void startLoad() {
        if (mFooter != null && hasFooter) {
            mFooter.startLoad();
        }
    }

    public void stopRefresh() {
        if (mHeader != null && hasHeader) {
            mHeader.stopRefresh();
        }
    }

    public void stopLoad() {
        if (mFooter != null && hasFooter) {
            mFooter.stopLoad();
        }
    }

    @Override
    public void addView(View child, int index, ViewGroup.LayoutParams params) {
// Path: pullrefresh/src/main/java/com/nicksong/refreshAndLoad/widget/support/impl/Loadable.java
// public interface Loadable {
// 
//     void setPullRefreshLayout(PullRefreshLayout refreshLayout);
// 
//     boolean onScroll(float y);
// 
//     void onScrollChange(int state);
// 
//     boolean onStartFling(float offsetTop);
// 
//     void startLoad();
// 
//     void stopLoad();
// }
// 
// Path: pullrefresh/src/main/java/com/nicksong/refreshAndLoad/widget/support/impl/Refreshable.java
// public interface Refreshable {
// 
//     void setPullRefreshLayout(PullRefreshLayout refreshLayout);
// 
//     boolean onScroll(float y);
// 
//     void onScrollChange(int state);
// 
//     boolean onStartFling(float offsetTop);
// 
//     void startRefresh();
// 
//     void stopRefresh();
// }


// Path: pullrefresh/src/main/java/com/nicksong/refreshAndLoad/widget/layout/PullRefreshLayout.java
import android.content.Context;
import android.util.AttributeSet;
import android.view.View;
import android.view.ViewGroup;
import com.nicksong.refreshAndLoad.widget.support.impl.Loadable;
import com.nicksong.refreshAndLoad.widget.support.impl.Refreshable;

        }
        return false;
    }

    public void startRefresh() {
        if (mHeader != null && hasHeader) {
            mHeader.startRefresh();
        }
    }

    public void startLoad() {
        if (mFooter != null && hasFooter) {
            mFooter.startLoad();
        }
    }

    public void stopRefresh() {
        if (mHeader != null && hasHeader) {
            mHeader.stopRefresh();
        }
    }

    public void stopLoad() {
        if (mFooter != null && hasFooter) {
            mFooter.stopLoad();
        }
    }

    @Override
    public void addView(View child, int index, ViewGroup.LayoutParams params) {
        if (child instanceof Refreshable && mHeader == null) {