Home > other >  Android Kotlin Multiselect dropdown
Android Kotlin Multiselect dropdown

Time:12-21

I want to implement a multi-select dropdown like the image below with the arrow at the end & selected items showing in the text field ( marquee if needed). Can someone help? I don't want it to pop up like a dialog box, but to open under the textview like a normal spinner.

multi select

CodePudding user response:

You have to create a spinner in your own xml and create a custom adapter for that spinner that will take an array as a parametre

You can follow these

Multi Select Spinner - GitHub Repo

Multiselect Spinner

Step by step development of MultiselectSpinner

CodePudding user response:

You can check out the official google's documentation - https://material.io/components/menus/android

After adding items to the menu, add a drawable icon in the same.

  • Related