@@ -0,0 +1,1315 @@
+package wm.xmwei.ui.view.draptopout;%0A%0Aimport android.content.Context;%0Aimport android.util.AttributeSet;%0A%0Aimport com.handmark.pulltorefresh.library.PullToRefreshBase;%0A%0Aimport github.chenupt.dragtoplayout.DragTopLayout;%0A%0A/**%0A * Created by chenupt@gmail.com on 3/3/15.%0A * Description : Used for Android-PullToRefresh%0A */%0Apublic class PullToRefreshTopLayout extends PullToRefreshBase%3CDragTopLayout%3E %7B%0A%0A    public PullToRefreshTopLayout(Context context) %7B%0A        super(context);%0A    %7D%0A%0A    public PullToRefreshTopLayout(Context context, AttributeSet attrs) %7B%0A        super(context, attrs);%0A    %7D%0A%0A    @Override%0A    public final Orientation getPullToRefreshScrollDirection() %7B%0A        return Orientation.VERTICAL;%0A    %7D%0A%0A    @Override%0A    protected void onFinishInflate() %7B%0A        super.onFinishInflate();%0A        getRefreshableView().onFinishInflate();%0A    %7D%0A%0A    @Override%0A    protected DragTopLayout createRefreshableView(Context context, AttributeSet attrs) %7B%0A        return new DragTopLayout(context, attrs);%0A    %7D%0A%0A    @Override%0A    protected boolean isReadyForPullStart() %7B%0A        DragTopLayout refreshableView = getRefreshableView();%0A        return refreshableView.getState() == DragTopLayout.PanelState.EXPANDED;%0A    %7D%0A%0A    @Override%0A    protected boolean isReadyForPullEnd() %7B%0A        return false;%0A    %7D%0A%7D%0A%0A

add pull Top layout