/** * Define the OnLongClickListener which will be used for a single item * * @param onLongClickListener the OnLongClickListener which will be used for a single item * @return this */ public FastAdapterBottomSheetDialog<Item> withOnLongClickListener(OnLongClickListener<Item> onLongClickListener) { this.mFastAdapter.withOnLongClickListener(onLongClickListener); return this; }
/** * Define the OnLongClickListener which will be used for a single item * * @param onLongClickListener the OnLongClickListener which will be used for a single item * @return this */ public FastAdapterDialog<Item> withOnLongClickListener(OnLongClickListener<Item> onLongClickListener) { this.mFastAdapter.withOnLongClickListener(onLongClickListener); return this; }
mAdapter.withOnLongClickListener(new OnLongClickListener<IDrawerItem>() { @Override public boolean onLongClick(View view, IAdapter<IDrawerItem> adapter, final IDrawerItem item, final int position) {
mAdapter.withOnLongClickListener(mOnMiniDrawerItemLongClickListener); mRecyclerView.scrollToPosition(0);