0

enter image description here Query : I am creating 2-Spinner view , where i have to add Country/Cities list , So like if i am selecting india then i am getting 50 items inside the drop down view , problem with this is that it is taking the whole page in height .

What i want : I want to create a drop down view , where user can see only 10 items in the drop down view , other items will be shown whenever user will scroll the drop down view .

Lisa
  • 1
  • https://stackoverflow.com/questions/20597584/how-to-limit-the-height-of-spinner-drop-down-view-in-android ? However, you got better options like `Exposed Dropdown Menus` and `AutoCompleteTextView`. – ʍѳђઽ૯ท Dec 02 '20 at 10:00
  • just calculate the size of wanted items and set it as the height of listView. for example each cell has 40Dp and you want to show 5 cell, 5*40=200Dp and set the listView height 200Dp – saeedata Dec 02 '20 at 14:22

0 Answers0