Package dev.inmo.micro_utils.android.alerts.recyclerview

Types

ActionsRecyclerViewAdapter
Link copied to clipboard
class ActionsRecyclerViewAdapter(data: List<AlertAction>, dialogInterfaceGetter: () -> DialogInterface) : RecyclerViewAdapter<AlertAction>
ActionViewHolder
Link copied to clipboard
class ActionViewHolder(container: ViewGroup, dialogInterfaceGetter: () -> DialogInterface) : AbstractStandardViewHolder<AlertAction>
AlertAction
Link copied to clipboard
data class AlertAction(title: String, callback: (DialogInterface) -> Unit)

Functions

createActionsAlertDialog
Link copied to clipboard
fun Context.createActionsAlertDialog(actions: List<AlertAction>, title: Int? = null, positivePair: Pair<Int, AlertDialogCallback?>? = null, neutralPair: Pair<Int, AlertDialogCallback?>? = null, negativePair: Pair<Int, AlertDialogCallback?>? = null, show: Boolean = true): AlertDialog
createRecyclerViewDialog
Link copied to clipboard
fun Context.createRecyclerViewDialog(title: Int? = null, positivePair: Pair<Int, AlertDialogCallback?>? = null, neutralPair: Pair<Int, AlertDialogCallback?>? = null, negativePair: Pair<Int, AlertDialogCallback?>? = null, show: Boolean = true, layoutManager: RecyclerView.LayoutManager = LinearLayoutManager(this), marginOfRecyclerView: Int = 8, recyclerViewSetUp: RecyclerView.() -> Unit = {}, adapterFactory: () -> RecyclerView.Adapter<*>): AlertDialog