0

How can I hide the first Item in a spinner?

My entries:

string-array name="super_spinner">
        <item>Select</item>
        <item>1</item>
        <item>2</item>
        <item>3</item>
        <item>4</item>
        <item>5</item>
    </string-array>

I want the spinner to show the first item but not when he opens the spinner options.

Abdulrahman
  • 301
  • 1
  • 3
  • 12

1 Answers1

-1

Use spinner adapter to show the items you want to show in the dropdown. https://developer.android.com/guide/topics/ui/controls/spinner#java

junaid amjad
  • 83
  • 1
  • 2
  • 5