Package ai.nexconn.chatui.widget.dialog
Class BottomSelectDialog.Builder
-
- All Implemented Interfaces:
public class BottomSelectDialog.BuilderBuilder. Use setSelections to set options, build to create the instance, and then setOnSelectListener to set the listener.
-
-
Constructor Summary
Constructors Constructor Description BottomSelectDialog.Builder()
-
Method Summary
Modifier and Type Method Description BottomSelectDialog.BuildersetSelections(Array<String> selections)Set the selection texts BottomSelectDialog.BuildersetSelectionsColor(Array<int> colors)Set the color resources for the selection texts (must be resource color IDs). BottomSelectDialog.BuildersetTitle(String title)Set the title. BottomSelectDialogbuild()-
-
Method Detail
-
setSelections
BottomSelectDialog.Builder setSelections(Array<String> selections)
Set the selection texts
- Parameters:
selections- the selection texts- Returns:
this Builder
-
setSelectionsColor
BottomSelectDialog.Builder setSelectionsColor(Array<int> colors)
Set the color resources for the selection texts (must be resource color IDs). The array length must match setSelections to take effect. Use 0 for default color.
- Parameters:
colors- the color resource IDs- Returns:
this Builder
-
setTitle
BottomSelectDialog.Builder setTitle(String title)
Set the title. Title is optional.
- Parameters:
title- the title text- Returns:
this Builder
-
build
BottomSelectDialog build()
-
-
-
-