0

As per the title.

I am using the Support Library DrawerLayout to create a sliding drawer that has a listview in it.

I'd like to add some drop-down (spinner) controls so the list can be sorted alphabetically etc.

How can I achieve this?

Mr Pablo
  • 4,109
  • 8
  • 51
  • 104
  • Instead of adding just listview, try to add one linearlayout vertically aligned containing one listview and one spinner. – adnbsr Sep 23 '15 at 15:51
  • Literally just done this :) How do I go about setting up the spinner to order my listview alphabetically etc? – Mr Pablo Sep 23 '15 at 15:55
  • 1
    let's assume other options to change order. In *OnItemSelectedListener()*, according to position of spinner item, call `Collections.sort(list/arraylist)` and notify your adapter about new sorted list – adnbsr Sep 23 '15 at 16:08

0 Answers0