/** * Define the OnPreClickListener which will be used for a single item and is called after all internal methods are done * * @param onPreClickListener the OnPreClickListener which will be called after a single item was clicked and all internal methods are done * @return this */ public FastAdapterBottomSheetDialog<Item> withOnPreClickListener(com.mikepenz.fastadapter.listeners.OnClickListener<Item> onPreClickListener) { this.mFastAdapter.withOnPreClickListener(onPreClickListener); return this; }
/** * Define the OnPreClickListener which will be used for a single item and is called after all internal methods are done * * @param onPreClickListener the OnPreClickListener which will be called after a single item was clicked and all internal methods are done * @return this */ public FastAdapterDialog<Item> withOnPreClickListener(com.mikepenz.fastadapter.listeners.OnClickListener<Item> onPreClickListener) { this.mFastAdapter.withOnPreClickListener(onPreClickListener); return this; }
mFastAdapter.withOnPreClickListener(new OnClickListener<SimpleItem>() { @Override public boolean onClick(View v, IAdapter<SimpleItem> adapter, @NonNull SimpleItem item, int position) {
mFastAdapter.withMultiSelect(true); mFastAdapter.withSelectOnLongClick(true); mFastAdapter.withOnPreClickListener(new OnClickListener<IItem>() { @Override public boolean onClick(View v, IAdapter adapter, @NonNull IItem item, int position) {
.withMultiSelect(true) .withSelectOnLongClick(true) .withOnPreClickListener(new OnClickListener<IItem>() { @Override public boolean onClick(View v, IAdapter<IItem> adapter, @NonNull IItem item, int position) {