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


Java PullToRefreshScrollView类代码示例

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


PullToRefreshScrollView类属于com.handmark.pulltorefresh.library包,在下文中一共展示了PullToRefreshScrollView类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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: initViews

import com.handmark.pulltorefresh.library.PullToRefreshScrollView; //导入依赖的package包/类
@Override
protected void initViews() {
	// TODO Auto-generated method stub
	mPullToRefreshScrollView = (PullToRefreshScrollView) findViewById(R.id.user_info_scrollview);

	mUserAvatarImageView = (ImageView) findViewById(R.id.user_avatar);
	mNickNameTextView = (TextView) findViewById(R.id.user_nick);
	mUserIdTextView = (TextView) findViewById(R.id.user_id);
	mUserDistricTextView = (TextView) findViewById(R.id.user_district);
	mUserSignTextView = (TextView) findViewById(R.id.user_sign);
	mUserSex = (TextView) findViewById(R.id.user_sex);

	mUserMemoRootView = findViewById(R.id.user_memo_root);
	mUserMemoTextView = (TextView) findViewById(R.id.user_memo);

	mSendMsgBtn = (Button) findViewById(R.id.user_info_send_msg_btn);
}
 
开发者ID:ikantech,项目名称:yiim_v2,代码行数:18,代码来源:UserInfoActivity.java

示例3: inject

import com.handmark.pulltorefresh.library.PullToRefreshScrollView; //导入依赖的package包/类
public void inject(Finder finder, T target, Object source) {
    target.viewPager = (ViewPager) finder.castView((View) finder.findRequiredView(source, R
            .id.viewpager_partner, "field 'viewPager'"), R.id.viewpager_partner, "field " +
            "'viewPager'");
    target.indicator = (LinePageIndicator) finder.castView((View) finder.findRequiredView
            (source, R.id.indicator, "field 'indicator'"), R.id.indicator, "field 'indicator'");
    target.flPartner = (FrameLayout) finder.castView((View) finder.findRequiredView(source, R
            .id.fl_partner, "field 'flPartner'"), R.id.fl_partner, "field 'flPartner'");
    target.llContent = (LinearLayout) finder.castView((View) finder.findRequiredView(source,
            R.id.ll_content, "field 'llContent'"), R.id.ll_content, "field 'llContent'");
    target.scrollView = (PullToRefreshScrollView) finder.castView((View) finder
            .findRequiredView(source, R.id.scrollview, "field 'scrollView'"), R.id
            .scrollview, "field 'scrollView'");
}
 
开发者ID:JackChan1999,项目名称:boohee_v5.6,代码行数:15,代码来源:NewPartnerFragment$$ViewInjector.java

示例4: inject

import com.handmark.pulltorefresh.library.PullToRefreshScrollView; //导入依赖的package包/类
public void inject(Finder finder, T target, Object source) {
    target.layoutContainer = (LinearLayout) finder.castView((View) finder.findRequiredView
            (source, R.id.layout_container, "field 'layoutContainer'"), R.id
            .layout_container, "field 'layoutContainer'");
    target.scrollview = (PullToRefreshScrollView) finder.castView((View) finder
            .findRequiredView(source, R.id.scrollview, "field 'scrollview'"), R.id
            .scrollview, "field 'scrollview'");
}
 
开发者ID:JackChan1999,项目名称:boohee_v5.6,代码行数:9,代码来源:SportPlanFragment$$ViewInjector.java

示例5: initViews

import com.handmark.pulltorefresh.library.PullToRefreshScrollView; //导入依赖的package包/类
@Override
protected void initViews() {
    setContentView(R.layout.activity_call_main_of_all);
    setTitleBack("排队叫号");
    layout1 = (LinearLayout) findViewById(R.id.layout_1);
    scrollView1 = (PullToRefreshScrollView) findViewById(R.id.scroll_view_1);
    layout2 = (LinearLayout) findViewById(R.id.layout_2);
    scrollView2 = (PullToRefreshScrollView) findViewById(R.id.scroll_view_2);
    allList = (MyListView) findViewById(R.id.all_list);
}
 
开发者ID:mjd507,项目名称:zsyy,代码行数:11,代码来源:CallMainActivity.java

示例6: 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

示例7: initViews

import com.handmark.pulltorefresh.library.PullToRefreshScrollView; //导入依赖的package包/类
protected void initViews() {
	// TODO Auto-generated method stub
	mPullToRefreshScrollView = (PullToRefreshScrollView) mRootView
			.findViewById(R.id.frag_user_info_set);
	mAvatariImageView = (ImageView) mRootView
			.findViewById(R.id.user_info_set_pic);
	mNickTextView = (TextView) mRootView
			.findViewById(R.id.user_info_set_nick);
	mUserIdTextView = (TextView) mRootView
			.findViewById(R.id.user_info_set_userid);

	mSexTextView = (TextView) mRootView
			.findViewById(R.id.user_info_set_sex);
	mDistricTextView = (TextView) mRootView
			.findViewById(R.id.user_info_set_district);
	mSignTextView = (TextView) mRootView
			.findViewById(R.id.user_info_set_sign);

	View v = mRootView.findViewById(R.id.user_info_set_pic_root);
	v.setOnClickListener(this);

	v = mRootView.findViewById(R.id.user_info_set_nick_root);
	v.setOnClickListener(this);

	v = mRootView.findViewById(R.id.user_info_set_district_root);
	v.setOnClickListener(this);

	v = mRootView.findViewById(R.id.user_info_set_sign_root);
	v.setOnClickListener(this);

	mAvatariImageView.setOnClickListener(this);
}
 
开发者ID:ikantech,项目名称:yiim_v2,代码行数:33,代码来源:UserInfoSetFragment.java

示例8: GetTimesPageTask

import com.handmark.pulltorefresh.library.PullToRefreshScrollView; //导入依赖的package包/类
/**
 * Constructor for the use in Times activity
 * 
 * @param context Context of the activity
 * @param ptrView PullToRefreshView in the activity in which to show the results (If this is null, then this task will just act as a background task, won't show any result to user yet)
 * @param bus Bus for which the times will be got
 * @param type Type of the times to get
 */
public GetTimesPageTask(Context context, PullToRefreshScrollView ptrView, Bus bus, String type)
{
	myContext = context;
	myPtrView = ptrView;
	myBus = bus;
	myType = type;
	
	url = String.format("%s?%s=%s&%s=%s", Constants.BUS_TIMES_URL, Constants.NUMBER_PARAMETER, bus.getNumber(), Constants.TYPE_PARAMETER, type);
	
	if(myPtrView != null)
	{
		((Times) context).toggleProgressBar(true);
	}
}
 
开发者ID:mehmetakiftutuncu,项目名称:eshotroid-legacy,代码行数:23,代码来源:GetTimesPageTask.java

示例9: 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类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。