Swipe and croll a list of wifi in app and select the element from it

Select the list
Class– android.widget.Spinner

Now, On clicking it will open the list

Class ---- android.widget.ListView
All list id element are dynamic I am able to scroll the list but it is not selecting any element.

Pls suggest any solution. It should scroll to any wifi present in list.

Thanks in advance!!