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


Java PullToRequestView类代码示例

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


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

示例1: FriendAdapter

import com.mob.tools.gui.PullToRequestView; //导入依赖的package包/类
public FriendAdapter(FriendListPage activity, PullToRequestView view) {
	super(view);
	this.activity = activity;

	curPage = -1;
	hasNext = true;
	map = new HashMap<String, Boolean>();
	follows = new ArrayList<Following>();

	getListView().setDivider(new ColorDrawable(0xffeaeaea));
}
 
开发者ID:gaolhjy,项目名称:cniao5,代码行数:12,代码来源:FriendAdapter.java

示例2: FriendAdapter

import com.mob.tools.gui.PullToRequestView; //导入依赖的package包/类
public FriendAdapter(FriendListPage activity, PullToRequestView view) {
  super(view);
  this.activity = activity;

  curPage = -1;
  hasNext = true;
  map = new HashMap<String, Boolean>();
  follows = new ArrayList<Following>();

  getListView().setDivider(new ColorDrawable(0xffeaeaea));
}
 
开发者ID:zfdang,项目名称:zSMTH-Android,代码行数:12,代码来源:FriendAdapter.java

示例3: onCreate

import com.mob.tools.gui.PullToRequestView; //导入依赖的package包/类
public void onCreate() {
  activity.getWindow().setBackgroundDrawable(new ColorDrawable(0xfff3f3f3));

  llPage = new LinearLayout(activity);
  llPage.setOrientation(LinearLayout.VERTICAL);
  activity.setContentView(llPage);

  rlTitle = new RelativeLayout(activity);
  float ratio = getRatio();
  int titleHeight = (int) (getDesignTitleHeight() * ratio);
  LinearLayout.LayoutParams lp = new LinearLayout.LayoutParams(LayoutParams.MATCH_PARENT, titleHeight);
  llPage.addView(rlTitle, lp);
  initTitle(rlTitle, ratio);

  View line = new View(activity);
  LinearLayout.LayoutParams lpline = new LinearLayout.LayoutParams(LayoutParams.MATCH_PARENT, (int) (ratio < 1 ? 1 : ratio));
  line.setBackgroundColor(0xffdad9d9);
  llPage.addView(line, lpline);

  FrameLayout flPage = new FrameLayout(getContext());
  LinearLayout.LayoutParams lpFl = new LinearLayout.LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.WRAP_CONTENT);
  lpFl.weight = 1;
  flPage.setLayoutParams(lpFl);
  llPage.addView(flPage);

  // 关注(或朋友)列表
  PullToRequestView followList = new PullToRequestView(getContext());
  FrameLayout.LayoutParams lpLv = new FrameLayout.LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT);
  followList.setLayoutParams(lpLv);
  flPage.addView(followList);

  adapter = new FriendAdapter(this, followList);
  adapter.setPlatform(platform);
  adapter.setRatio(ratio);
  adapter.setOnItemClickListener(this);
  followList.setAdapter(adapter);

  // 请求数据
  followList.performPullingDown(true);
}
 
开发者ID:zfdang,项目名称:zSMTH-Android,代码行数:41,代码来源:FriendListPage.java

示例4: onCreate

import com.mob.tools.gui.PullToRequestView; //导入依赖的package包/类
public void onCreate() {
	activity.getWindow().setBackgroundDrawable(new ColorDrawable(0xfff3f3f3));

	llPage = new LinearLayout(activity);
	llPage.setOrientation(LinearLayout.VERTICAL);
	activity.setContentView(llPage);

	rlTitle = new RelativeLayout(activity);
	float ratio = getRatio();
	int titleHeight = (int) (getDesignTitleHeight() * ratio);
	LinearLayout.LayoutParams lp = new LinearLayout.LayoutParams(
			LayoutParams.MATCH_PARENT, titleHeight);
	llPage.addView(rlTitle, lp);
	initTitle(rlTitle, ratio);

	View line = new View(activity);
	LinearLayout.LayoutParams lpline = new LinearLayout.LayoutParams(
			LayoutParams.MATCH_PARENT, (int) (ratio < 1 ? 1 : ratio));
	line.setBackgroundColor(0xffdad9d9);
	llPage.addView(line, lpline);

	FrameLayout flPage = new FrameLayout(getContext());
	LinearLayout.LayoutParams lpFl = new LinearLayout.LayoutParams(
			LayoutParams.MATCH_PARENT, LayoutParams.WRAP_CONTENT);
	lpFl.weight = 1;
	flPage.setLayoutParams(lpFl);
	llPage.addView(flPage);

	// 关注(或朋友)列表
	PullToRequestView followList = new PullToRequestView(getContext());
	FrameLayout.LayoutParams lpLv = new FrameLayout.LayoutParams(
			LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT);
	followList.setLayoutParams(lpLv);
	flPage.addView(followList);

	adapter = new FriendAdapter(this, followList);
	adapter.setPlatform(platform);
	adapter.setRatio(ratio);
	adapter.setOnItemClickListener(this);
	followList.setAdapter(adapter);

	// 请求数据
	followList.performPullingDown(true);
}
 
开发者ID:gaolhjy,项目名称:cniao5,代码行数:45,代码来源:FriendListPage.java

示例5: ForumAdapter

import com.mob.tools.gui.PullToRequestView; //导入依赖的package包/类
public ForumAdapter(PullToRequestView view) {
	super(view);
}
 
开发者ID:MobClub,项目名称:BBSSDK-for-Android,代码行数:4,代码来源:ForumForumView.java

示例6: PullToRefreshHeaderFooterAdapter

import com.mob.tools.gui.PullToRequestView; //导入依赖的package包/类
public PullToRefreshHeaderFooterAdapter(PullToRequestView view) {
	super(view);
}
 
开发者ID:MobClub,项目名称:BBSSDK-for-Android,代码行数:4,代码来源:PullToRefreshHeaderFooterAdapter.java

示例7: BasePagedItemAdapter

import com.mob.tools.gui.PullToRequestView; //导入依赖的package包/类
public BasePagedItemAdapter(PullToRequestView view) {
	super(view);
	getListView().setSelector(new ColorDrawable(0));
	getListView().setDivider(new ColorDrawable(view.getResources().getColor(ResHelper.getColorRes(getContext(), "bbs_list_divider_bg"))));
	getListView().setDividerHeight(ResHelper.dipToPx(getContext(), 1));
}
 
开发者ID:MobClub,项目名称:BBSSDK-for-Android,代码行数:7,代码来源:BasePagedItemAdapter.java


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