SVID_20210825_231729_1.mp4```kotlin fun onlick(view: View) { val dialog = BottomMoreSelectDialog(this) dialog .setTitle(“请选择地址”) .setTitleData(arrayListOf(MoreSelectData(“请选择国家”, null), MoreSelectData(“请选择省份”, null), MoreSelectData(“请选择城市”, null), MoreSelectData(“请选择地区”, null))) .setMoreSelectListener(object: MoreSelectListener { override fun getChildList(position: Int, title: MoreSelectData?, preTitle: MoreSelectData?) { Log.e(TAG, “getChildList: ${title?.hintTitle}”) val datas = mutableListOf() repeat(100) { datas.add(MoreSelectData.ChildData(title?.hintTitle + it, null)) } dialog.setChildData(position, datas) }

    1. override fun onChildClick(position: Int, data: MoreSelectData.ChildData?, titleIndex: Int, title: MoreSelectData?, isCompleted: Boolean) {
    2. if (isCompleted) {
    3. dialog.completed().forEach {
    4. Log.e(TAG, "" + it.data)
    5. }
    6. }
    7. }
    8. })
    9. .showAllWith()

    } ```