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