本文整理汇总了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));
}
示例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));
}
示例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);
}
示例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);
}
示例5: ForumAdapter
import com.mob.tools.gui.PullToRequestView; //导入依赖的package包/类
public ForumAdapter(PullToRequestView view) {
super(view);
}
示例6: PullToRefreshHeaderFooterAdapter
import com.mob.tools.gui.PullToRequestView; //导入依赖的package包/类
public PullToRefreshHeaderFooterAdapter(PullToRequestView view) {
super(view);
}
示例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));
}