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


Java WrapperAdapterUtils类代码示例

本文整理汇总了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();
}
 
开发者ID:aliumujib,项目名称:Orin,代码行数:26,代码来源:FlatPlayerFragment.java

示例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();
}
 
开发者ID:aliumujib,项目名称:Orin,代码行数:22,代码来源:PlaylistDetailActivity.java

示例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();
}
 
开发者ID:h4h13,项目名称:RetroMusicPlayer,代码行数:23,代码来源:PlayingQueueFragment.java

示例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();
}
 
开发者ID:DenK91,项目名称:LinkedListInDB,代码行数:22,代码来源:DragOnLongPressFragment.java

示例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();
}
 
开发者ID:fi3te,项目名称:ILIASDownloaderAndroid,代码行数:19,代码来源:CurrentSyncFragment.java

示例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;
}
 
开发者ID:andreshj87,项目名称:CleanFit,代码行数:21,代码来源:DiaryFragment.java

示例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();
}
 
开发者ID:hanks-zyh,项目名称:Conquer,代码行数:27,代码来源:MyTaskFragment.java

示例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();
}
 
开发者ID:MyGrades,项目名称:mygrades-app,代码行数:22,代码来源:FragmentFaq.java

示例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();
}
 
开发者ID:pczhu,项目名称:android-advancedrecyclerview-master,代码行数:23,代码来源:RecyclerListViewFragment.java

示例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();
}
 
开发者ID:pczhu,项目名称:android-advancedrecyclerview-master,代码行数:23,代码来源:RecyclerListViewFragment.java

示例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;
}
 
开发者ID:gandulf,项目名称:DsaTab,代码行数:23,代码来源:ListableFragment.java

示例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;
}
 
开发者ID:8enet,项目名称:AppOpsX,代码行数:29,代码来源:PermissionGroupActivity.java

示例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();
}
 
开发者ID:PureDark,项目名称:H-Viewer,代码行数:36,代码来源:MainActivity.java

示例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();
}
 
开发者ID:seven332,项目名称:Nimingban,代码行数:41,代码来源:RecordActivity.java


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