本文整理汇总了Java中com.heaven7.adapter.ISelectable类的典型用法代码示例。如果您正苦于以下问题:Java ISelectable类的具体用法?Java ISelectable怎么用?Java ISelectable使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ISelectable类属于com.heaven7.adapter包,在下文中一共展示了ISelectable类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: onResultCallback
import com.heaven7.adapter.ISelectable; //导入依赖的package包/类
@Override
public void onResultCallback(List<PhotoDirectory<BasePhotoFileEntity>> directories) {
this.mPhotoDirs = directories;
////directories.get(0) contains the all photoes. so this as the whole directory.
final List<BasePhotoFileEntity> photos = directories.get(0).getPhotos();
if(mGridAdapter == null) {
if(photos.size()==0){
showToast("no photoes");
// return;
}
mGridAdapter = new PhotoGridAdapter<BasePhotoFileEntity>(R.layout.item_photo,
photos, ISelectable.SELECT_MODE_MULTI) {
@Override
protected void applySelectState(ImageView selectIcon, boolean selected) {
selectIcon.setImageResource( selected ? R.mipmap.pic_check_select : R.mipmap.pic_check_normal);
}
@Override
protected boolean bindCameraItemSuccess(Context context, int position, ViewHelper helper) {
// ImageView view = helper.getView(com.medlinker.photopicker.R.id.photo_picker_iv_select_icon);
return false;
}
@Override
protected int getCameraItemLayoutId() {
return R.layout.item_photo_camera;
}
};
mGridAdapter.setCallback(mCallback);
rv_photos.setAdapter(mGridAdapter);
}else{
mGridAdapter.getAdapterManager().replaceAllItems(photos);
}
}
示例2: createTestSelectAdapter
import com.heaven7.adapter.ISelectable; //导入依赖的package包/类
private QuickRecycleViewAdapter<RecyclerViewNestedTest.ChildData> createTestSelectAdapter() {
return new TestSelectAdapter(ISelectable.SELECT_MODE_MULTI);
}
示例3: TestSelectAdapter
import com.heaven7.adapter.ISelectable; //导入依赖的package包/类
public TestSelectAdapter() {
this(ISelectable.SELECT_MODE_SINGLE);
}
示例4: TestDeleteAdapter
import com.heaven7.adapter.ISelectable; //导入依赖的package包/类
public TestDeleteAdapter() {
this(ISelectable.SELECT_MODE_SINGLE);
}
示例5: PhotoGridAdapter
import com.heaven7.adapter.ISelectable; //导入依赖的package包/类
/**
* default select mode {@link ISelectable#SELECT_MODE_SINGLE}
* @param layoutId item layout id
* @param mDatas the data of the grid
*/
public PhotoGridAdapter(int layoutId, List<T> mDatas) {
super(layoutId, mDatas, ISelectable.SELECT_MODE_SINGLE);
}