public class FastAdapterBottomSheetDialog<Item extends IItem>
extends BottomSheetDialog
| 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
|
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(<any> adapter) |
FastAdapterBottomSheetDialog<Item> |
withFastItemAdapter(<any> fastAdapter,
<any> itemAdapter) |
FastAdapterBottomSheetDialog<Item> |
withItems(Item... items) |
FastAdapterBottomSheetDialog<Item> |
withItems(java.util.List<Item> items) |
FastAdapterBottomSheetDialog<Item> |
withLayoutManager(RecyclerView.LayoutManager layoutManager)
Set the
RecyclerView.LayoutManager that the RecyclerView will use. |
FastAdapterBottomSheetDialog<Item> |
withOnClickListener(<any> onClickListener)
Define the OnClickListener which will be used for a single item
|
FastAdapterBottomSheetDialog<Item> |
withOnLongClickListener(<any> onLongClickListener)
Define the OnLongClickListener which will be used for a single item
|
FastAdapterBottomSheetDialog<Item> |
withOnPreClickListener(<any> onPreClickListener)
Define the OnPreClickListener which will be used for a single item and is called after all internal methods are done
|
FastAdapterBottomSheetDialog<Item> |
withOnPreLongClickListener(<any> onPreLongClickListener)
Define the OnLongClickListener which will be used for a single item and is called after all internal methods are done
|
FastAdapterBottomSheetDialog<Item> |
withOnScrollListener(RecyclerView.OnScrollListener listener)
Add a listener that will be notified of any changes in scroll state or position of the
RecyclerView.
|
FastAdapterBottomSheetDialog<Item> |
withOnTouchListener(<any> onTouchListener)
Define the TouchListener which will be used for a single item
|
public FastAdapterBottomSheetDialog(android.content.Context context)
public FastAdapterBottomSheetDialog(android.content.Context context,
int theme)
public FastAdapterBottomSheetDialog<Item> withFastItemAdapter(<any> fastAdapter, <any> itemAdapter)
public FastAdapterBottomSheetDialog<Item> withItems(java.util.List<Item> items)
public FastAdapterBottomSheetDialog<Item> withItems(Item... items)
public FastAdapterBottomSheetDialog<Item> withAdapter(<any> adapter)
public FastAdapterBottomSheetDialog<Item> withLayoutManager(RecyclerView.LayoutManager layoutManager)
RecyclerView.LayoutManager that the RecyclerView will use.layoutManager - LayoutManager to usepublic FastAdapterBottomSheetDialog<Item> withOnScrollListener(RecyclerView.OnScrollListener listener)
listener - listener to set or null to clearpublic void show()
#onStart.public RecyclerView getRecyclerView()
public FastAdapterBottomSheetDialog<Item> withOnClickListener(<any> onClickListener)
onClickListener - the OnClickListener which will be used for a single itempublic FastAdapterBottomSheetDialog<Item> withOnPreClickListener(<any> onPreClickListener)
onPreClickListener - the OnPreClickListener which will be called after a single item was clicked and all internal methods are donepublic FastAdapterBottomSheetDialog<Item> withOnLongClickListener(<any> onLongClickListener)
onLongClickListener - the OnLongClickListener which will be used for a single itempublic FastAdapterBottomSheetDialog<Item> withOnPreLongClickListener(<any> onPreLongClickListener)
onPreLongClickListener - the OnLongClickListener which will be called after a single item was clicked and all internal methods are donepublic FastAdapterBottomSheetDialog<Item> withOnTouchListener(<any> 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()