|
YAACC - UPNP Client and Server
|
A short list to pick one entry from, as a bottom sheet in the look of the other sheets of the app (the device sheet, the Snapcast group sheet): a title and rows with a text and an optional second line. More...

Classes | |
| class | Choice |
| One entry: the title and an optional second line. | |
Static Public Member Functions | |
| static BottomSheetDialog | show (Context context, CharSequence title, List< Choice > choices, final IntConsumer onChosen) |
| Shows the sheet. | |
A short list to pick one entry from, as a bottom sheet in the look of the other sheets of the app (the device sheet, the Snapcast group sheet): a title and rows with a text and an optional second line.
It replaces the plain AlertDialog#setItems list, whose rows are one line of stock text. The texts are plain text (a name from the network is cleaned by the caller). Thin Android glue: the words of a row are describe and hasSubtitle, tested on the JVM.
|
static |
Shows the sheet.
The sheet ends with the choice; swiping it away or the back key chooses nothing.
| onChosen | gets the position of the chosen entry in choices |