Number of items showed on spinner


I have a spinner populate from a firebase, can i define the number of items that it show when touch the spinner for the first time?, i want to show only 6 when the spinner at first but the others items of the list works with the scrollbar, and can i define the first item to show when the spinner upload?.


You can show number of items by setting link to get length of list got by firebase

Set spinner text to select list item list(spinner elements) index 1

Thanks, i made the modification and it works but only for one time, it show me the select item but if i press the button again, doesn’t works more.