【转载】设置 PullToRefreshL…
2017-04-14 15:17
459 查看
原文地址:设置
PullToRefreshListview的 上拉下拉文字
[java] view
plain copy
print?
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的 上拉下拉文字
[java] view
plain copy
print?
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);
}
}
相关文章推荐
- 【转载】Python 获取网卡设置…
- 【转载】Android-PullToRefresh&nb…
- Copy_from&to_user详解 转载
- 【转载】Genymotion提示To fi…
- Images; How to create an HTTP handler to dynamically resize images and change quality.
- Pointers to Great ASP.NET Atlas Content
- How to render the " " in dropdownlist
- 不看不知道 教你如何设置iPhone邮箱
- ASP.NET 2.0: Add build-in paging feature to repeater/为repeater添加内置分页功能
- In Admin going to System > Magen…
- 上“海”-Cycle to the sea.
- How to use virtual path providers to dynamically load and compile content from virtual paths in
- 【转载】Linux core 文件介绍
- linux--系统设置--命令
- [转载]C# ToString格式字符串整理(Format)(数字、日期和枚举的标准格式设置说明符)(SamWang)
- How to use virtual path providers to dynamically load and compile content from virtual paths in
- Error while calling the Roles.AddUserToRole (error message: Cannot resolve collation conflict fo
- Pointers to Great ASP.NET Atlas Content
- ASP.NET 2.0: Add build-in paging feature to repeater/为repeater添加内置分页功能
- undefined reference to 'pthread_create'(转载)