public static class BottomSelectDialog.Builder
extends java.lang.Object
setSelections(String[]) 来设置选项。
通过 build() 创建实例。
创建实例后通过BottomSelectDialog.setOnSelectListener(OnSelectListener) 设置监听。| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
BottomSelectDialog |
build() |
BottomSelectDialog.Builder |
setSelections(java.lang.String[] selections)
设置选项中的文字
|
BottomSelectDialog.Builder |
setSelectionsColor(int[] colors)
设置选项中的文字的颜色资源(需要是 resource color 资源。)。
长度必须与
setSelections(String[]) 一直才能生效。
当设置值为 0 时,使用默认颜色。 |
BottomSelectDialog.Builder |
setTitle(java.lang.String title)
设置标题。
标题可不设置。
|
public BottomSelectDialog.Builder setSelections(java.lang.String[] selections)
selections - public BottomSelectDialog.Builder setSelectionsColor(int[] colors)
setSelections(String[]) 一直才能生效。
当设置值为 0 时,使用默认颜色。colors - public BottomSelectDialog.Builder setTitle(java.lang.String title)
title - public BottomSelectDialog build()