How to make it so that when a spinner list drops out, the list would always start from the beginning, regardless of which item was selected earlier?

    1 answer 1

    By default, the first item in the list is displayed. Using the setSelection () method, you can set the desired element by default by specifying an index from a string resource.

    spinner.setSelection(2); //например 

    a source

    • I need that when a list falls out, it always starts with the first element, if done as you wrote, it will start from the third. I forgot to write that the list does not fit the whole screen, i.e. When you select an item at the end and then select it, it will scroll to it - user225253
    • @ user225253 spinner.setSelection spinner.setSelection(0); - Silento