Spinner not charge list
I'm getting a list of company names but I can only get Spinner to show me one item from the list.
What can I do so that the spinner loads the empresa list, it only shows an item
private fun initCharacter(clientes : List) {
clientes.forEach{
val empresas = it.empresa
val listCliente: MutableList = ArrayList()
listCliente.add(SpinnerClientes(empresas))
val spnAdapter = SpinnerClientesAdapter(this@AddObra,
R.layout.kecamatan, R.id.spinnerText,...