设置 PullToRefreshListview的 上拉下拉文字

/**
 * Created by gaoshuai on 2014/9/9.
 */
public class PTRUtil {
    public static void setPTRText(PullToRefreshBase ptrView) {
        ptrView.setMode(PullToRefreshBase.Mode.BOTH);
        ILoadingLayout startLabels = ptrView.getLoadingLayoutProxy(true, false);
        startLabels.setPullLabel("下拉刷新");
        startLabels.setRefreshingLabel("正在刷新...");
        startLabels.setReleaseLabel("松开刷新");

        ILoadingLayout endLabels = ptrView.getLoadingLayoutProxy(false, true);
        endLabels.setPullLabel("加载更多");
        endLabels.setRefreshingLabel("正在加载...");
        endLabels.setReleaseLabel("加载更多");
        ptrView.setMode(PullToRefreshBase.Mode.PULL_FROM_START);
    }
}

你可能感兴趣的:(设置 PullToRefreshListview的 上拉下拉文字)