I am now working on an android app where i required to load all country list on a dropdown. My User Requirement to add multiselect dropdown like as following which we use in web using JQuery....
I am searching this type of dropdown but not get any solution yet. How can i solve this requirement? any suggestion is highly appreciated.
Thanks in advance.
N.B: I found following type of drop down which not accepted to my user.
You can add a dropdown menu to your Android application in a few simple steps. For starters, you need to edit the XML files. Integrate the dropdown menu into them using Android Studio's drag-and-drop feature. Next, you have to create a string array to add all the relevant items to your dropdown menu.
For windows: Hold down the control (ctrl) button to select multiple options. For Mac: Hold down the command button to select multiple options.
You are talking about is Chips View, there are multiples third party lib which can help you
https://github.com/hootsuite/nachos
https://github.com/pchmn/MaterialChipsInput
You can get help from this.
You have to create a spinner in your own xml and create a custom adapter for that spinner.
These links may help you:
Multi Select Spinner with Search/Filter
How to develop Multi Select spinner
Multi Select Spinner
Multi Select Spinner with Search/Filter
Multi selection spinner in android without AlertDialog
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With