I wanted to use AutoCompleteTextView in my android application.I know how to use it with simple array of Strings, but I wanted AutoCompleteTextView to use list of Objects t
You can override getItem in this adapter, depend on each type to convert it into String
override fun getItem(position: Int): String? { val item = listData[position] when (item) { is BankItem -> { return item.bankName } .... }