public class FastAdapterBottomSheetDialog<Item extends com.mikepenz.fastadapter.IItem>
extends android.support.design.widget.BottomSheetDialog
android.content.DialogInterface.OnCancelListener, android.content.DialogInterface.OnClickListener, android.content.DialogInterface.OnDismissListener, android.content.DialogInterface.OnKeyListener, android.content.DialogInterface.OnMultiChoiceClickListener, android.content.DialogInterface.OnShowListener| Constructor and Description |
|---|
FastAdapterBottomSheetDialog(android.content.Context context) |
FastAdapterBottomSheetDialog(android.content.Context context,
int theme) |
| Modifier and Type | Method and Description |
|---|---|
FastAdapterBottomSheetDialog<Item> |
add(int position,
Item... items)
add an array of items at the given position within the existing items
|
FastAdapterBottomSheetDialog<Item> |
add(int position,
Item item)
add an item at the given position within the existing icons
|
FastAdapterBottomSheetDialog<Item> |
add(int position,
java.util.List<Item> items)
add a list of items at the given position within the existing items
|
FastAdapterBottomSheetDialog<Item> |
add(Item... items)
add an array of items to the end of the existing items
|
FastAdapterBottomSheetDialog<Item> |
add(Item item)
add an item at the end of the existing items
|
FastAdapterBottomSheetDialog<Item> |
add(java.util.List<Item> items)
add a list of items to the end of the existing items
|
FastAdapterBottomSheetDialog<Item> |
clear()
removes all items of this adapter
|
android.support.v7.widget.RecyclerView |
getRecyclerView() |
FastAdapterBottomSheetDialog<Item> |
move(int fromPosition,
int toPosition)
moves an item within the list from a position to a position
|
FastAdapterBottomSheetDialog<Item> |
remove(int position)
removes an item at the given position within the existing icons
|
FastAdapterBottomSheetDialog<Item> |
removeItemRange(int position,
int itemCount)
removes a range of items starting with the given position within the existing icons
|
FastAdapterBottomSheetDialog<Item> |
set(int position,
Item item)
sets an item at the given position, overwriting the previous item
|
FastAdapterBottomSheetDialog<Item> |
set(java.util.List<Item> items)
set a new list of items and apply it to the existing list (clear - add) for this adapter
|
FastAdapterBottomSheetDialog<Item> |
setNewList(java.util.List<Item> items)
sets a complete new list of items onto this adapter, using the new list.
|
void |
show()
Start the dialog and display it on screen.
|
FastAdapterBottomSheetDialog<Item> |
withAdapter(com.mikepenz.fastadapter.FastAdapter<Item> adapter) |
FastAdapterBottomSheetDialog<Item> |
withFastItemAdapter(com.mikepenz.fastadapter.FastAdapter<Item> fastAdapter,
com.mikepenz.fastadapter.adapters.ItemAdapter<Item> itemAdapter) |
FastAdapterBottomSheetDialog<Item> |
withItems(Item... items) |
FastAdapterBottomSheetDialog<Item> |
withItems(java.util.List<Item> items) |
FastAdapterBottomSheetDialog<Item> |
withLayoutManager(android.support.v7.widget.RecyclerView.LayoutManager layoutManager)
Set the
RecyclerView.LayoutManager that the RecyclerView will use. |
FastAdapterBottomSheetDialog<Item> |
withOnClickListener(com.mikepenz.fastadapter.listeners.OnClickListener<Item> onClickListener)
Define the OnClickListener which will be used for a single item
|
FastAdapterBottomSheetDialog<Item> |
withOnLongClickListener(com.mikepenz.fastadapter.listeners.OnLongClickListener<Item> onLongClickListener)
Define the OnLongClickListener which will be used for a single item
|
FastAdapterBottomSheetDialog<Item> |
withOnPreClickListener(com.mikepenz.fastadapter.listeners.OnClickListener<Item> onPreClickListener)
Define the OnPreClickListener which will be used for a single item and is called after all internal methods are done
|
FastAdapterBottomSheetDialog<Item> |
withOnPreLongClickListener(com.mikepenz.fastadapter.listeners.OnLongClickListener<Item> onPreLongClickListener)
Define the OnLongClickListener which will be used for a single item and is called after all internal methods are done
|
FastAdapterBottomSheetDialog<Item> |
withOnScrollListener(android.support.v7.widget.RecyclerView.OnScrollListener listener)
Add a listener that will be notified of any changes in scroll state or position of the
RecyclerView.
|
FastAdapterBottomSheetDialog<Item> |
withOnTouchListener(com.mikepenz.fastadapter.listeners.OnTouchListener<Item> onTouchListener)
Define the TouchListener which will be used for a single item
|
onCreate, onStart, setCancelable, setCanceledOnTouchOutside, setContentView, setContentView, setContentViewaddContentView, findViewById, getDelegate, getSupportActionBar, invalidateOptionsMenu, onStop, onSupportActionModeFinished, onSupportActionModeStarted, onWindowStartingSupportActionMode, setTitle, setTitle, supportRequestWindowFeaturecancel, closeOptionsMenu, create, dismiss, dispatchGenericMotionEvent, dispatchKeyEvent, dispatchKeyShortcutEvent, dispatchPopulateAccessibilityEvent, dispatchTouchEvent, dispatchTrackballEvent, getActionBar, getContext, getCurrentFocus, getLayoutInflater, getOwnerActivity, getSearchEvent, getVolumeControlStream, getWindow, hide, isShowing, onActionModeFinished, onActionModeStarted, onAttachedToWindow, onBackPressed, onContentChanged, onContextItemSelected, onContextMenuClosed, onCreateContextMenu, onCreateOptionsMenu, onCreatePanelMenu, onCreatePanelView, onDetachedFromWindow, onGenericMotionEvent, onKeyDown, onKeyLongPress, onKeyMultiple, onKeyShortcut, onKeyUp, onMenuItemSelected, onMenuOpened, onOptionsItemSelected, onOptionsMenuClosed, onPanelClosed, onPrepareOptionsMenu, onPreparePanel, onRestoreInstanceState, onSaveInstanceState, onSearchRequested, onSearchRequested, onTouchEvent, onTrackballEvent, onWindowAttributesChanged, onWindowFocusChanged, onWindowStartingActionMode, onWindowStartingActionMode, openContextMenu, openOptionsMenu, registerForContextMenu, requestWindowFeature, setCancelMessage, setDismissMessage, setFeatureDrawable, setFeatureDrawableAlpha, setFeatureDrawableResource, setFeatureDrawableUri, setOnCancelListener, setOnDismissListener, setOnKeyListener, setOnShowListener, setOwnerActivity, setVolumeControlStream, takeKeyEvents, unregisterForContextMenupublic FastAdapterBottomSheetDialog(android.content.Context context)
public FastAdapterBottomSheetDialog(android.content.Context context,
int theme)
public FastAdapterBottomSheetDialog<Item> withFastItemAdapter(@NonNull com.mikepenz.fastadapter.FastAdapter<Item> fastAdapter, @NonNull com.mikepenz.fastadapter.adapters.ItemAdapter<Item> itemAdapter)
public FastAdapterBottomSheetDialog<Item> withItems(@NonNull java.util.List<Item> items)
public FastAdapterBottomSheetDialog<Item> withItems(@NonNull Item... items)
public FastAdapterBottomSheetDialog<Item> withAdapter(com.mikepenz.fastadapter.FastAdapter<Item> adapter)
public FastAdapterBottomSheetDialog<Item> withLayoutManager(android.support.v7.widget.RecyclerView.LayoutManager layoutManager)
RecyclerView.LayoutManager that the RecyclerView will use.layoutManager - LayoutManager to usepublic FastAdapterBottomSheetDialog<Item> withOnScrollListener(android.support.v7.widget.RecyclerView.OnScrollListener listener)
listener - listener to set or null to clearpublic void show()
BottomSheetDialog.onStart().show in class android.app.Dialog@NonNull public android.support.v7.widget.RecyclerView getRecyclerView()
public FastAdapterBottomSheetDialog<Item> withOnClickListener(com.mikepenz.fastadapter.listeners.OnClickListener<Item> onClickListener)
onClickListener - the OnClickListener which will be used for a single itempublic FastAdapterBottomSheetDialog<Item> withOnPreClickListener(com.mikepenz.fastadapter.listeners.OnClickListener<Item> onPreClickListener)
onPreClickListener - the OnPreClickListener which will be called after a single item was clicked and all internal methods are donepublic FastAdapterBottomSheetDialog<Item> withOnLongClickListener(com.mikepenz.fastadapter.listeners.OnLongClickListener<Item> onLongClickListener)
onLongClickListener - the OnLongClickListener which will be used for a single itempublic FastAdapterBottomSheetDialog<Item> withOnPreLongClickListener(com.mikepenz.fastadapter.listeners.OnLongClickListener<Item> onPreLongClickListener)
onPreLongClickListener - the OnLongClickListener which will be called after a single item was clicked and all internal methods are donepublic FastAdapterBottomSheetDialog<Item> withOnTouchListener(com.mikepenz.fastadapter.listeners.OnTouchListener<Item> onTouchListener)
onTouchListener - the TouchListener which will be used for a single itempublic FastAdapterBottomSheetDialog<Item> set(java.util.List<Item> items)
items - the new items to setpublic FastAdapterBottomSheetDialog<Item> setNewList(java.util.List<Item> items)
items - the new items to set@SafeVarargs public final FastAdapterBottomSheetDialog<Item> add(Item... items)
items - the items to addpublic FastAdapterBottomSheetDialog<Item> add(java.util.List<Item> items)
items - the items to add@SafeVarargs public final FastAdapterBottomSheetDialog<Item> add(int position, Item... items)
position - the global positionitems - the items to addpublic FastAdapterBottomSheetDialog<Item> add(int position, java.util.List<Item> items)
position - the global positionitems - the items to addpublic FastAdapterBottomSheetDialog<Item> set(int position, Item item)
position - the global positionitem - the item to setpublic FastAdapterBottomSheetDialog<Item> add(Item item)
item - the item to addpublic FastAdapterBottomSheetDialog<Item> add(int position, Item item)
position - the global positionitem - the item to addpublic FastAdapterBottomSheetDialog<Item> move(int fromPosition, int toPosition)
fromPosition - the position global from which we want to movetoPosition - the global position to which to movepublic FastAdapterBottomSheetDialog<Item> remove(int position)
position - the global positionpublic FastAdapterBottomSheetDialog<Item> removeItemRange(int position, int itemCount)
position - the global positionitemCount - the count of items removedpublic FastAdapterBottomSheetDialog<Item> clear()