本文整理汇总了Java中com.h6ah4i.android.widget.advrecyclerview.utils.WrapperAdapterUtils类的典型用法代码示例。如果您正苦于以下问题:Java WrapperAdapterUtils类的具体用法?Java WrapperAdapterUtils怎么用?Java WrapperAdapterUtils使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
WrapperAdapterUtils类属于com.h6ah4i.android.widget.advrecyclerview.utils包,在下文中一共展示了WrapperAdapterUtils类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: onDestroyView
import com.h6ah4i.android.widget.advrecyclerview.utils.WrapperAdapterUtils; //导入依赖的package包/类
@Override
public void onDestroyView() {
if (slidingUpPanelLayout != null) {
slidingUpPanelLayout.removePanelSlideListener(this);
}
if (recyclerViewDragDropManager != null) {
recyclerViewDragDropManager.release();
recyclerViewDragDropManager = null;
}
if (recyclerView != null) {
recyclerView.setItemAnimator(null);
recyclerView.setAdapter(null);
recyclerView = null;
}
if (wrappedAdapter != null) {
WrapperAdapterUtils.releaseAll(wrappedAdapter);
wrappedAdapter = null;
}
playingQueueAdapter = null;
layoutManager = null;
super.onDestroyView();
unbinder.unbind();
}
示例2: onDestroy
import com.h6ah4i.android.widget.advrecyclerview.utils.WrapperAdapterUtils; //导入依赖的package包/类
@Override
protected void onDestroy() {
if (recyclerViewDragDropManager != null) {
recyclerViewDragDropManager.release();
recyclerViewDragDropManager = null;
}
if (recyclerView != null) {
recyclerView.setItemAnimator(null);
recyclerView.setAdapter(null);
recyclerView = null;
}
if (wrappedAdapter != null) {
WrapperAdapterUtils.releaseAll(wrappedAdapter);
wrappedAdapter = null;
}
adapter = null;
super.onDestroy();
}
示例3: onDestroyView
import com.h6ah4i.android.widget.advrecyclerview.utils.WrapperAdapterUtils; //导入依赖的package包/类
@Override
public void onDestroyView() {
if (mRecyclerViewDragDropManager != null) {
mRecyclerViewDragDropManager.release();
mRecyclerViewDragDropManager = null;
}
if (mRecyclerView != null) {
mRecyclerView.setItemAnimator(null);
mRecyclerView.setAdapter(null);
mRecyclerView = null;
}
if (mWrappedAdapter != null) {
WrapperAdapterUtils.releaseAll(mWrappedAdapter);
mWrappedAdapter = null;
}
mPlayingQueueAdapter = null;
mLayoutManager = null;
super.onDestroyView();
unbinder.unbind();
}
示例4: onDestroyView
import com.h6ah4i.android.widget.advrecyclerview.utils.WrapperAdapterUtils; //导入依赖的package包/类
@Override
public void onDestroyView() {
if (mRecyclerViewDragDropManager != null) {
mRecyclerViewDragDropManager.release();
mRecyclerViewDragDropManager = null;
}
if (mRecyclerView != null) {
mRecyclerView.setAdapter(null);
mRecyclerView = null;
}
if (mWrappedAdapter != null) {
WrapperAdapterUtils.releaseAll(mWrappedAdapter);
mWrappedAdapter = null;
}
mAdapter = null;
mLayoutManager = null;
super.onDestroyView();
}
示例5: onDestroyView
import com.h6ah4i.android.widget.advrecyclerview.utils.WrapperAdapterUtils; //导入依赖的package包/类
@Override
public void onDestroyView() {
if (mRecyclerViewExpandableItemManager != null) {
mRecyclerViewExpandableItemManager.release();
mRecyclerViewExpandableItemManager = null;
}
if (recyclerView != null) {
recyclerView.setItemAnimator(null);
recyclerView.setAdapter(null);
recyclerView = null;
}
if (mWrappedAdapter != null) {
WrapperAdapterUtils.releaseAll(mWrappedAdapter);
mWrappedAdapter = null;
}
adapter = null;
super.onDestroyView();
}
示例6: onDragItemFinished
import com.h6ah4i.android.widget.advrecyclerview.utils.WrapperAdapterUtils; //导入依赖的package包/类
void onDragItemFinished(boolean result) {
if (LOCAL_LOGD) {
Log.d(TAG, "onDragItemFinished(result = " + result + ")");
}
if (DEBUG_BYPASS_MOVE_OPERATION_MODE) {
return;
}
if (result && (mDraggingItemCurrentPosition != mDraggingItemInitialPosition)) {
// apply to wrapped adapter
DraggableItemAdapter adapter = WrapperAdapterUtils.findWrappedAdapter(
getWrappedAdapter(), DraggableItemAdapter.class);
adapter.onMoveItem(mDraggingItemInitialPosition, mDraggingItemCurrentPosition);
}
mDraggingItemInitialPosition = RecyclerView.NO_POSITION;
mDraggingItemCurrentPosition = RecyclerView.NO_POSITION;
mDraggableRange = null;
mDraggingItemInfo = null;
mDraggingItemViewHolder = null;
notifyDataSetChanged();
}
开发者ID:fabricethilaw,项目名称:expandable-recyclerview-with-gridlayout,代码行数:25,代码来源:DraggableItemWrapperAdapter.java
示例7: releaseRecyclerView
import com.h6ah4i.android.widget.advrecyclerview.utils.WrapperAdapterUtils; //导入依赖的package包/类
private void releaseRecyclerView() {
if (mRecyclerViewExpandableItemManager != null) {
mRecyclerViewExpandableItemManager.release();
mRecyclerViewExpandableItemManager = null;
}
if (mRecyclerView != null) {
mRecyclerView.setItemAnimator(null);
mRecyclerView.setAdapter(null);
mRecyclerView = null;
}
if (mWrappedAdapter != null) {
WrapperAdapterUtils.releaseAll(mWrappedAdapter);
mWrappedAdapter = null;
}
mAdapter = null;
mLayoutManager = null;
}
示例8: onDestroyView
import com.h6ah4i.android.widget.advrecyclerview.utils.WrapperAdapterUtils; //导入依赖的package包/类
@Override
public void onDestroyView() {
if (mRecyclerViewDragDropManager != null) {
mRecyclerViewDragDropManager.release();
mRecyclerViewDragDropManager = null;
}
if (mRecyclerViewSwipeManager != null) {
mRecyclerViewSwipeManager.release();
mRecyclerViewSwipeManager = null;
}
if (mRecyclerView != null) {
mRecyclerView.setItemAnimator(null);
mRecyclerView.setAdapter(null);
mRecyclerView = null;
}
if (mWrappedAdapter != null) {
WrapperAdapterUtils.releaseAll(mWrappedAdapter);
mWrappedAdapter = null;
}
mAdapter = null;
mLayoutManager = null;
super.onDestroyView();
}
示例9: onDestroyView
import com.h6ah4i.android.widget.advrecyclerview.utils.WrapperAdapterUtils; //导入依赖的package包/类
@Override
public void onDestroyView() {
if (recyclerViewExpandableItemManager != null) {
recyclerViewExpandableItemManager.release();
recyclerViewExpandableItemManager = null;
}
if (recyclerView != null) {
recyclerView.setItemAnimator(null);
recyclerView.setAdapter(null);
recyclerView = null;
}
if (wrappedAdapter != null) {
WrapperAdapterUtils.releaseAll(wrappedAdapter);
}
layoutManager = null;
super.onDestroyView();
}
示例10: onDestroyView
import com.h6ah4i.android.widget.advrecyclerview.utils.WrapperAdapterUtils; //导入依赖的package包/类
@Override
public void onDestroyView() {
if (mRecyclerViewDragDropManager != null) {
mRecyclerViewDragDropManager.release();
mRecyclerViewDragDropManager = null;
}
if (mRecyclerView != null) {
mRecyclerView.setItemAnimator(null);
mRecyclerView.setAdapter(null);
mRecyclerView = null;
}
if (mWrappedAdapter != null) {
WrapperAdapterUtils.releaseAll(mWrappedAdapter);
mWrappedAdapter = null;
}
mAdapter = null;
mLayoutManager = null;
super.onDestroyView();
}
示例11: onDestroyView
import com.h6ah4i.android.widget.advrecyclerview.utils.WrapperAdapterUtils; //导入依赖的package包/类
@Override
public void onDestroyView() {
if (mRecyclerViewExpandableItemManager != null) {
mRecyclerViewExpandableItemManager.release();
mRecyclerViewExpandableItemManager = null;
}
if (mRecyclerView != null) {
mRecyclerView.setItemAnimator(null);
mRecyclerView.setAdapter(null);
mRecyclerView = null;
}
if (mWrappedAdapter != null) {
WrapperAdapterUtils.releaseAll(mWrappedAdapter);
mWrappedAdapter = null;
}
mAdapter = null;
mLayoutManager = null;
super.onDestroyView();
}
示例12: onPrepareActionMode
import com.h6ah4i.android.widget.advrecyclerview.utils.WrapperAdapterUtils; //导入依赖的package包/类
@Override
public boolean onPrepareActionMode(ActionMode mode, Menu menu) {
RecyclerView list = listView.get();
ListableFragment fragment = listFragment.get();
if (list == null || fragment == null)
return false;
MenuItem edit = menu.findItem(R.id.option_edit);
ListableItemAdapter adapter = WrapperAdapterUtils.findWrappedAdapter(list.getAdapter(), ListableItemAdapter.class);
for (int index : getManager().getSelectedPositions()) {
Object obj = adapter.getItem(index);
if (obj instanceof CustomModificator) {
return ViewUtils.menuIconState(edit, true);
} else {
return ViewUtils.menuIconState(edit, false);
}
}
return false;
}
示例13: onDestroy
import com.h6ah4i.android.widget.advrecyclerview.utils.WrapperAdapterUtils; //导入依赖的package包/类
@Override
protected void onDestroy() {
super.onDestroy();
if(mPresenter != null){
mPresenter.destroy();
}
if(stickyHelper != null) {
stickyHelper.release();
}
if (mRecyclerViewExpandableItemManager != null) {
mRecyclerViewExpandableItemManager.release();
mRecyclerViewExpandableItemManager = null;
}
if (recyclerView != null) {
recyclerView.setItemAnimator(null);
recyclerView.setAdapter(null);
recyclerView = null;
}
if (mWrappedAdapter != null) {
WrapperAdapterUtils.releaseAll(mWrappedAdapter);
mWrappedAdapter = null;
}
mLayoutManager = null;
}
示例14: onDestroy
import com.h6ah4i.android.widget.advrecyclerview.utils.WrapperAdapterUtils; //导入依赖的package包/类
@Override
public void onDestroy() {
if (siteHolder != null)
siteHolder.onDestroy();
if (siteTagHolder != null)
siteTagHolder.onDestroy();
if (favorTagHolder != null)
favorTagHolder.onDestroy();
HViewerApplication.searchHistoryHolder.saveSearchHistory();
HViewerApplication.searchSuggestionHolder.saveSearchSuggestion();
if (mRecyclerViewDragDropManager != null) {
downloadManager.setAllPaused();
downloadManager.saveDownloadingTasks();
downloadManager.unbindService(this);
downloadManager = null;
}
if (mRecyclerViewDragDropManager != null) {
mRecyclerViewDragDropManager.release();
mRecyclerViewDragDropManager = null;
}
if (rvSite != null) {
rvSite.setItemAnimator(null);
rvSite.setAdapter(null);
rvSite = null;
}
if (mWrappedAdapter != null) {
WrapperAdapterUtils.releaseAll(mWrappedAdapter);
mWrappedAdapter = null;
}
super.onDestroy();
}
示例15: onDestroy
import com.h6ah4i.android.widget.advrecyclerview.utils.WrapperAdapterUtils; //导入依赖的package包/类
@Override
protected void onDestroy() {
super.onDestroy();
Messenger.getInstance().unregister(Constants.MESSENGER_ID_UPDATE_RECORD, this);
if (mRecyclerViewSwipeManager != null) {
mRecyclerViewSwipeManager.release();
mRecyclerViewSwipeManager = null;
}
if (mRecyclerViewTouchActionGuardManager != null) {
mRecyclerViewTouchActionGuardManager.release();
mRecyclerViewTouchActionGuardManager = null;
}
if (mRecyclerView != null) {
mRecyclerView.setItemAnimator(null);
mRecyclerView.setAdapter(null);
mRecyclerView = null;
}
if (mWrappedAdapter != null) {
WrapperAdapterUtils.releaseAll(mWrappedAdapter);
mWrappedAdapter = null;
}
mAdapter = null;
if (mLazyList != null) {
mLazyList.close();
}
for (WeakReference<LoadImageView> ref : mLoadImageViewSet) {
LoadImageView liv = ref.get();
if (liv != null) {
liv.unload();
}
}
mLoadImageViewSet.clear();
}