Multi selection spinner in android without AlertDialog

user3793597 picture user3793597 · Jul 2, 2014 · Viewed 75.5k times · Source

i want the same as this link https://www.gorecess.com/ first spinner . multi selection spinner in android with checkbox .Show the spinner in dropdown. anyone know answer...

Answer

Dhina k picture Dhina k · Feb 18, 2016

MultiSelectionSpinner

            <com.extra.MultiSelectionSpinner
                android:id="@+id/input1"
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                android:layout_margin="2dp" />

       MultiSelectionSpinner spinner=(MultiSelectionSpinner)findViewById(R.id.input1);

       List<String> list = new ArrayList<String>();
          list.add("List1");
          list.add("List2");
          spinner.setItems(list);