Package dev. inmo. micro_utils. android. alerts. recyclerview
Types
Link copied to clipboard
class ActionsRecyclerViewAdapter(data: List<AlertAction>, dialogInterfaceGetter: () -> DialogInterface) : RecyclerViewAdapter<AlertAction>
Content copied to clipboard
Link copied to clipboard
class ActionViewHolder(container: ViewGroup, dialogInterfaceGetter: () -> DialogInterface) : AbstractStandardViewHolder<AlertAction>
Content copied to clipboard
Link copied to clipboard
data class AlertAction(val title: String, val callback: (DialogInterface) -> Unit)
Content copied to clipboard
Functions
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
Content copied to clipboard
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
Content copied to clipboard