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


Java WrapperAdapterUtils.releaseAll方法代码示例

本文整理汇总了Java中com.h6ah4i.android.widget.advrecyclerview.utils.WrapperAdapterUtils.releaseAll方法的典型用法代码示例。如果您正苦于以下问题:Java WrapperAdapterUtils.releaseAll方法的具体用法?Java WrapperAdapterUtils.releaseAll怎么用?Java WrapperAdapterUtils.releaseAll使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.h6ah4i.android.widget.advrecyclerview.utils.WrapperAdapterUtils的用法示例。


在下文中一共展示了WrapperAdapterUtils.releaseAll方法的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: 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

示例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 (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

示例10: 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

示例11: 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

示例12: 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

示例13: onDestroy

import com.h6ah4i.android.widget.advrecyclerview.utils.WrapperAdapterUtils; //导入方法依赖的package包/类
@Override
protected void onDestroy() {
    super.onDestroy();

    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;
    mLayoutManager = null;

    if (mLazyList != null) {
        mLazyList.close();
    }
}
 
开发者ID:seven332,项目名称:Nimingban,代码行数:32,代码来源:DraftActivity.java

示例14: releaseDragFeature

import com.h6ah4i.android.widget.advrecyclerview.utils.WrapperAdapterUtils; //导入方法依赖的package包/类
protected final void releaseDragFeature() {
    if (recyclerViewDragDropManager != null) {
        recyclerViewDragDropManager.release();
        recyclerViewDragDropManager = null;
    }
    if (wrappedAdapter != null) {
        WrapperAdapterUtils.releaseAll(wrappedAdapter);
        wrappedAdapter = null;
    }
}
 
开发者ID:StepicOrg,项目名称:stepik-android,代码行数:11,代码来源:DraggableStepFragment.java

示例15: onDestroy

import com.h6ah4i.android.widget.advrecyclerview.utils.WrapperAdapterUtils; //导入方法依赖的package包/类
@Override
protected void onDestroy() {
    if (recyclerView != null) {
        recyclerView.setAdapter(null);
        recyclerView = null;
    }

    if (wrappedAdapter != null) {
        WrapperAdapterUtils.releaseAll(wrappedAdapter);
        wrappedAdapter = null;
    }
    adapter = null;

    super.onDestroy();
}
 
开发者ID:kabouzeid,项目名称:Phonograph,代码行数:16,代码来源:GenreDetailActivity.java


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