sheets icon indicating copy to clipboard operation
sheets copied to clipboard

Option customisation support

Open ItzNotABug opened this issue 2 years ago • 0 comments

Currently, there is no support for customizing Option based items. Example: a Font List, different colours depending on the index, etc.

Describe the solution you'd like Support customizing the title & subtitle TextViews completely like:

// Option
Option(/* Existing constructor args */, titleCust: (TextView.() -> Unit)? = null, subTitleCust: (TextView.() -> Unit)? = null)

// Usage
Option(R.drawable.menu_icon, "Menu Item", titleCust = { /*...*/ }, subTitleCust = { /*...*/ })

ItzNotABug avatar Jul 01 '22 18:07 ItzNotABug