本文整理汇总了Java中com.jess.arms.base.DefaultAdapter类的典型用法代码示例。如果您正苦于以下问题:Java DefaultAdapter类的具体用法?Java DefaultAdapter怎么用?Java DefaultAdapter使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
DefaultAdapter类属于com.jess.arms.base包,在下文中一共展示了DefaultAdapter类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: siteSetAdapter
import com.jess.arms.base.DefaultAdapter; //导入依赖的package包/类
public void siteSetAdapter() {
mAdapter = new SiteAdapter(mSites);
mRootView.setAdapter(mAdapter);//设置Adapter
mAdapter.setOnItemClickListener(new DefaultAdapter.OnRecyclerViewItemClickListener() {
@Override
public void onItemClick(View view, Object data, int position) {
Site site = mSites.get(position);
if (view.getId() == R.id.ib_site_item_del) {
mRootView.showMessage("del");
} else {
Intent intentSafe = new Intent(WEApplication.getContext(), WebActivity.class);
intentSafe.putExtra("showurl", site.getUrl());
intentSafe.putExtra("title", site.getName());
UiUtils.startActivity(intentSafe);
}
}
});
}
开发者ID:Zyj163,项目名称:yyox,代码行数:19,代码来源:FragmentPresenter.java
示例2: webSetAdapter
import com.jess.arms.base.DefaultAdapter; //导入依赖的package包/类
public void webSetAdapter() {
mAdapterWeb = new SiteAdapter(mWebs);
mRootView.setAdapterWeb(mAdapterWeb);//设置Adapter
mAdapterWeb.setOnItemClickListener(new DefaultAdapter.OnRecyclerViewItemClickListener() {
@Override
public void onItemClick(View view, Object data, int position) {
Site site = mWebs.get(position);
if (view.getId() == R.id.ib_site_item_del) {
mRootView.showMessage("del");
} else {
Intent intentSafe = new Intent(WEApplication.getContext(), WebActivity.class);
intentSafe.putExtra("showurl", site.getUrl());
intentSafe.putExtra("title", site.getName());
UiUtils.startActivity(intentSafe);
}
}
});
}
开发者ID:Zyj163,项目名称:yyox,代码行数:19,代码来源:FragmentPresenter.java
示例3: setAdapter_warehouse
import com.jess.arms.base.DefaultAdapter; //导入依赖的package包/类
/**
* 仓库列表设置数据
*/
private void setAdapter_warehouse() {
mAdapter = new WarehouseAdapter(mWarehouseList);
mRootView.setAdapter(mAdapter);
mAdapter.setOnItemClickListener(new DefaultAdapter.OnRecyclerViewItemClickListener() {
@Override
public void onItemClick(View view, Object data, int position) {
if (view.getId() == R.id.copy) {
//获取剪贴板管理器:
ClipboardManager cm = (ClipboardManager) mAppManager.getCurrentActivity().getSystemService(Context.CLIPBOARD_SERVICE);
// 创建普通字符型ClipData
ClipData mClipData = ClipData.newPlainText("Label", mWarehouseList.get(position).getName() + "\n" + mWarehouseList.get(position).getValue());
// 将ClipData内容放到系统剪贴板里。
cm.setPrimaryClip(mClipData);
mRootView.showMessage("复制成功");
}
}
});
}
开发者ID:Zyj163,项目名称:yyox,代码行数:22,代码来源:UserPresenter.java
示例4: setAdapter_Box
import com.jess.arms.base.DefaultAdapter; //导入依赖的package包/类
/**
* 设置合箱Adapter
*/
private void setAdapter_Box(Context context) {
mAdapter = new PackageBoxAdapter(mPackageItems);
mRootView.setAdapter(mAdapter);
mAdapter.setOnItemClickListener(new DefaultAdapter.OnRecyclerViewItemClickListener() {
@Override
public void onItemClick(View view, Object data, int position) {
if (view.getId() == R.id.ll_order_waiting_list_item_edit) {
edit(position, context);
} else if (view.getId() == R.id.ll_order_waiting_list_item_delete) {
delete(position);
} else if (view.getId() == R.id.cb_item_package_box_list_select) {
CheckBox checkBox = (CheckBox) view;
if (checkBox.isChecked()) {
mPackageItems.get(position).setChecked(true);
} else {
mPackageItems.get(position).setChecked(false);
}
mAdapter.notifyDataSetChanged();//通知更新数据
}
}
});
}
开发者ID:Zyj163,项目名称:yyox,代码行数:26,代码来源:PackagePresenter.java
示例5: setAdapter_Channel
import com.jess.arms.base.DefaultAdapter; //导入依赖的package包/类
/**
* 设置运输服务Adapter
*/
private void setAdapter_Channel() {
mAdapter = new OrderChannelAdapter(mChannels);
mRootView.setAdapter(mAdapter);
mAdapter.setOnItemClickListener(new DefaultAdapter.OnRecyclerViewItemClickListener() {
@Override
public void onItemClick(View view, Object data, int position) {
if (view.getId() == R.id.cb_item_order_channel_list_select) {
for (Channel channel : mChannels) {
channel.setChecked(false);
}
mChannels.get(position).setChecked(true);
mAdapter.notifyDataSetChanged();
}
}
});
}
开发者ID:Zyj163,项目名称:yyox,代码行数:20,代码来源:OrderPresenter.java
示例6: setAdapter_Order
import com.jess.arms.base.DefaultAdapter; //导入依赖的package包/类
/**
* 设置待出库、已出库、清关中、国内配送、已完成Adapter
*/
private void setAdapter_Order() {
mAdapter = new OrderCompletedAdapter(mOrders);
mRootView.setAdapter(mAdapter);
mAdapter.setOnItemClickListener(new DefaultAdapter.OnRecyclerViewItemClickListener() {
@Override
public void onItemClick(View view, Object data, int position) {
Order order = mOrders.get(position);
Intent objIntent = mAppManager.getCurrentActivity().getIntent();
Intent intent = new Intent(mAppManager.getCurrentActivity(), OrderTrackingActivity.class);
if (order.getType() == 3) {
intent.putExtra("orderTitle", "合箱发货");
} else {
intent.putExtra("orderTitle", order.getInventorybasic().get(0).getNickname());
}
intent.putExtra("orderNo", order.getOrderNo());
intent.putExtra("type", objIntent.getIntExtra("type", 0));
mAppManager.getCurrentActivity().startActivityForResult(intent, 1);
}
});
}
开发者ID:Zyj163,项目名称:yyox,代码行数:24,代码来源:OrderPresenter.java
示例7: onDestroy
import com.jess.arms.base.DefaultAdapter; //导入依赖的package包/类
@Override
protected void onDestroy() {
DefaultAdapter.releaseAllHolder(mRecyclerView);//super.onDestroy()之后会unbind,所有view被置为null,所以必须在之前调用
super.onDestroy();
this.mRxPermissions = null;
this.mPaginate = null;
}
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:8,代码来源:UserActivity.java
示例8: setAdapter_Coupon
import com.jess.arms.base.DefaultAdapter; //导入依赖的package包/类
private void setAdapter_Coupon() {
mAdapter = new CouponAdapter(mCouponsList);
mRootView.setAdapter(mAdapter);//设置Adapter
mAdapter.setOnItemClickListener(new DefaultAdapter.OnRecyclerViewItemClickListener() {
@Override
public void onItemClick(View view, Object data, int position) {
if (mCouponsList.get(position).getUsable() && mCouponsList.get(position).getStatus().equals("CAN_USE")) {
mRootView.getCouponItem(mCouponsList.get(position));
}
}
});
}
开发者ID:Zyj163,项目名称:yyox,代码行数:13,代码来源:UserPresenter.java
示例9: setAdapter_Waiting
import com.jess.arms.base.DefaultAdapter; //导入依赖的package包/类
/**
* 设置待入库Adapter
*/
private void setAdapter_Waiting(Context context) {
mAdapter = new PackageAdapter(mPackageItems);
mRootView.setAdapter(mAdapter);
mAdapter.setOnItemClickListener(new DefaultAdapter.OnRecyclerViewItemClickListener() {
@Override
public void onItemClick(View view, Object data, int position) {
if (view.getId() == R.id.ll_order_waiting_list_item_edit) {
edit(position, context);
} else if (view.getId() == R.id.ll_order_waiting_list_item_delete) {
delete(position);
}
}
});
}
开发者ID:Zyj163,项目名称:yyox,代码行数:18,代码来源:PackagePresenter.java
示例10: initData
import com.jess.arms.base.DefaultAdapter; //导入依赖的package包/类
@Override
protected void initData() {
mPresenter.requestPhotos(classify_id, type, mWeApplication.getmUser().getId(), true);
mPresenter.setOnItemClickListener(new DefaultAdapter.OnRecyclerViewItemClickListener() {
@Override
public void onItemClick(View view, Object data, int position) {
PhotoDetailActivity.show(getActivity(), ((Photos.PhotosItems) data).getId());
}
});
}
开发者ID:snowwolf10285,项目名称:PicShow-zhaipin,代码行数:11,代码来源:PhotosFragment.java
示例11: setAdapter
import com.jess.arms.base.DefaultAdapter; //导入依赖的package包/类
@Override
public void setAdapter(DefaultAdapter adapter) {
mRecyclerView.setAdapter(adapter);
initRecycleView();
initPaginate();
}
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:7,代码来源:UserActivity.java
示例12: setAdapter
import com.jess.arms.base.DefaultAdapter; //导入依赖的package包/类
@Override
public void setAdapter(DefaultAdapter adapter) {
mRecyclerView.setAdapter(adapter);
initRecycleView();
}
开发者ID:Zyj163,项目名称:yyox,代码行数:6,代码来源:PackageActivity.java
示例13: setAdapter
import com.jess.arms.base.DefaultAdapter; //导入依赖的package包/类
@Override
public void setAdapter(DefaultAdapter adapter) {
}
开发者ID:Zyj163,项目名称:yyox,代码行数:4,代码来源:OrderDetailActivity.java
示例14: setAdapter
import com.jess.arms.base.DefaultAdapter; //导入依赖的package包/类
@Override
public void setAdapter(DefaultAdapter adapter) {
mRecyclerView.setAdapter(adapter);
initRecycleView();
//initPaginate();
}
开发者ID:Zyj163,项目名称:yyox,代码行数:7,代码来源:OrderChannelActivity.java
示例15: setAdapter
import com.jess.arms.base.DefaultAdapter; //导入依赖的package包/类
@Override
public void setAdapter(DefaultAdapter adapter) {
mRecordRecyclerView.setAdapter(adapter);
initRecycleView();
initPaginate();
}
开发者ID:Zyj163,项目名称:yyox,代码行数:7,代码来源:UserRecordActivity.java
示例16: setAdapter
import com.jess.arms.base.DefaultAdapter; //导入依赖的package包/类
@Override
public void setAdapter(DefaultAdapter adapter) {
mSiteRecyclerView.setAdapter(adapter);
initRecycleView();
}
开发者ID:Zyj163,项目名称:yyox,代码行数:6,代码来源:BuyFragment.java
示例17: setAdapterWeb
import com.jess.arms.base.DefaultAdapter; //导入依赖的package包/类
@Override
public void setAdapterWeb(DefaultAdapter adapter) {
mWebRecyclerView.setAdapter(adapter);
initRecycleViewWeb();
}
开发者ID:Zyj163,项目名称:yyox,代码行数:6,代码来源:BuyFragment.java
示例18: setOnItemClickListener
import com.jess.arms.base.DefaultAdapter; //导入依赖的package包/类
public void setOnItemClickListener(DefaultAdapter.OnRecyclerViewItemClickListener listener) {
mAdapter.setOnItemClickListener(listener);
}
开发者ID:snowwolf10285,项目名称:PicShow-zhaipin,代码行数:4,代码来源:PhotosPresenter.java
示例19: setAdapter
import com.jess.arms.base.DefaultAdapter; //导入依赖的package包/类
@Override
public void setAdapter(DefaultAdapter adapter) {
recyclerView.setAdapter(adapter);
}
开发者ID:hshare,项目名称:MVPArmsTest1,代码行数:5,代码来源:HotsFragment.java
示例20: setAdapter
import com.jess.arms.base.DefaultAdapter; //导入依赖的package包/类
@Override
public void setAdapter(DefaultAdapter adapter) {
}
开发者ID:Zyj163,项目名称:yyox,代码行数:5,代码来源:UserModifyActivity.java
注:本文中的com.jess.arms.base.DefaultAdapter类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论