how to set the height for a spinner dropdown list?

  • Replies:3
  • OpenNot stickiedUnanswered
  • Forum posts: 2

Feb 19, 2016 1:10:58 PM via Website

How should I set the overall height of a spinner drop down ?

Suppose for example:

If I have a spinner drop down with total of 10 rows,
I would like to display only the first 3 rows,
and the rest of the content should be scrollable.

— modified on Feb 22, 2016 8:01:34 AM

  • Forum posts: 12

Mar 10, 2016 4:10:42 PM via Website

Base on a quick Google search this doesn't seem to be possible in an easy manner. You could of course always try to create your own custom spinner class made up for example of a dialog and buttons.

  • Forum posts: 2

Mar 11, 2016 5:50:04 AM via Website

Thanks Philipp for your suggestion. I am very new to Android development.
Could you point me to some custom spinner examples ? It would be really helpful.
Also, the spinner I require is of dropdown type.