```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
override fun onChildClick(position: Int, data: MoreSelectData.ChildData?, titleIndex: Int, title: MoreSelectData?, isCompleted: Boolean) {
if (isCompleted) {
dialog.completed().forEach {
Log.e(TAG, "" + it.data)
}
}
}
})
.showAllWith()
} ```