当前位置: 首页>>代码示例>>Java>>正文


Java PullToRefreshScrollView.setOnRefreshListener方法代码示例

本文整理汇总了Java中com.handmark.pulltorefresh.library.PullToRefreshScrollView.setOnRefreshListener方法的典型用法代码示例。如果您正苦于以下问题:Java PullToRefreshScrollView.setOnRefreshListener方法的具体用法?Java PullToRefreshScrollView.setOnRefreshListener怎么用?Java PullToRefreshScrollView.setOnRefreshListener使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.handmark.pulltorefresh.library.PullToRefreshScrollView的用法示例。


在下文中一共展示了PullToRefreshScrollView.setOnRefreshListener方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: onCreate

import com.handmark.pulltorefresh.library.PullToRefreshScrollView; //导入方法依赖的package包/类
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
	super.onCreate(savedInstanceState);
	setContentView(R.layout.activity_ptr_scrollview);

	mPullRefreshScrollView = (PullToRefreshScrollView) findViewById(R.id.pull_refresh_scrollview);
	mPullRefreshScrollView.setOnRefreshListener(new OnRefreshListener<ScrollView>() {

		@Override
		public void onRefresh(PullToRefreshBase<ScrollView> refreshView) {
			new GetDataTask().execute();
		}
	});

	mScrollView = mPullRefreshScrollView.getRefreshableView();
}
 
开发者ID:chongbo2013,项目名称:OverPulltorefresh,代码行数:18,代码来源:PullToRefreshScrollViewActivity.java

示例2: init

import com.handmark.pulltorefresh.library.PullToRefreshScrollView; //导入方法依赖的package包/类
private void init() {
	mPullToRefreshScrollView = (PullToRefreshScrollView) mainView
			.findViewById(R.id.pull_refresh_scrollview);
	myImageCircled = (MyImageCircled) mainView
			.findViewById(R.id.myImageCircled);
	myProgressBar = (MyProgressBar) mainView
			.findViewById(R.id.myProgressBar);
	img_tuijian = (ImageView) mainView.findViewById(R.id.img_tuijian);
	tv_tuijan = (TextView) mainView.findViewById(R.id.tv_tuijian);
	tv_nhsy = (TextView) mainView.findViewById(R.id.tv_nhsy);
	tv_rzje = (TextView) mainView.findViewById(R.id.tv_rzje);
	tv_rzqx = (TextView) mainView.findViewById(R.id.tv_rzqx);
	btn_ok = (Button) mainView.findViewById(R.id.btn_ok);
	line_tuijian = (LinearLayout) mainView.findViewById(R.id.line_tuijian);

	btn_ok.setOnClickListener(this);
	line_tuijian.setOnClickListener(this);
	mPullToRefreshScrollView.getLoadingLayoutProxy().setPullLabel("刷新");
	mPullToRefreshScrollView.getLoadingLayoutProxy().setRefreshingLabel(
			"正在刷新...");
	mPullToRefreshScrollView.getLoadingLayoutProxy().setReleaseLabel(
			"释放以刷新");

	mPullToRefreshScrollView
			.setOnRefreshListener(new OnRefreshListener<ScrollView>() {

				@Override
				public void onRefresh(
						PullToRefreshBase<ScrollView> refreshView) {
					// TODO Auto-generated method stub
					new RefreshDataTask().execute();
				}
			});
}
 
开发者ID:971758118,项目名称:git_wowodai,代码行数:35,代码来源:Fragment_shouye.java

示例3: init

import com.handmark.pulltorefresh.library.PullToRefreshScrollView; //导入方法依赖的package包/类
private void init() {
	myHeadView = (MyHeadView) findViewById(R.id.myHeadView);
	tv_head_ok = (TextView) findViewById(R.id.tv_head_ok);
	tv_head_ok.setVisibility(View.VISIBLE);
	tv_head_ok.setText("分享");
	tv_head_ok.setOnClickListener(this);
	layout_head_back = myHeadView.getBackLayout();
	layout_head_back.setOnClickListener(this);
	myHeadView.setTitle("项目详情");

	Project_ID = getIntent().getStringExtra("Project_ID");

	mPullToRefreshScrollView = (PullToRefreshScrollView) findViewById(R.id.pull_refresh_scrollview);
	myProgressBar = (MyProgressBar) findViewById(R.id.myProgressBar);
	gv_diya = (MyGridView) findViewById(R.id.gv_diya);
	gv_xiangmu = (MyGridView) findViewById(R.id.gv_xiangmu);

	img_tuijian = (ImageView) findViewById(R.id.img_tuijian);

	tv_tuijan = (TextView) findViewById(R.id.tv_tuijian);
	tv_nhsy = (TextView) findViewById(R.id.tv_nhsy);
	tv_rzje = (TextView) findViewById(R.id.tv_rzje);
	tv_rzqx = (TextView) findViewById(R.id.tv_rzqx);
	tv_dbjg = (TextView) findViewById(R.id.tv_dbjg);
	tv_syfs = (TextView) findViewById(R.id.tv_syfs);
	tv_hkrq = (TextView) findViewById(R.id.tv_hkrq);
	tv_xmms = (TextView) findViewById(R.id.tv_xmms);
	tv_jyzk = (TextView) findViewById(R.id.tv_jyzk);
	tv_qydj = (TextView) findViewById(R.id.tv_qydj);

	btn_ok = (Button) findViewById(R.id.btn_ok);

	btn_ok.setOnClickListener(this);

	mPullToRefreshScrollView.getLoadingLayoutProxy().setPullLabel("刷新");
	mPullToRefreshScrollView.getLoadingLayoutProxy().setRefreshingLabel(
			"正在刷新...");
	mPullToRefreshScrollView.getLoadingLayoutProxy().setReleaseLabel(
			"释放以刷新");

	mPullToRefreshScrollView
			.setOnRefreshListener(new OnRefreshListener<ScrollView>() {

				@Override
				public void onRefresh(
						PullToRefreshBase<ScrollView> refreshView) {
					// TODO Auto-generated method stub
					new RefreshDataTask().execute();
				}
			});
}
 
开发者ID:971758118,项目名称:git_wowodai,代码行数:52,代码来源:XiangMuDetailActivity.java


注:本文中的com.handmark.pulltorefresh.library.PullToRefreshScrollView.setOnRefreshListener方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。