I tried making it with border like below.
Set spinner in activity
Create border.xml in drawable
And populate it in any way you want.
val items = arrayOf("NM", "NY", "NC", "ND")
val adapter = ArrayAdapter(this, android.R.layout.simple_spinner_dropdown_item, items)
spinner1.adapter = adapter
I don't know how to put title to the spinner though.
Result seems like this.
Little adjustments and I think you can create what you are looking for.