how to set the height for a spinner dropdown list?

  • Replies:5
  • 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

Reply
  • 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.

Reply
  • 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.

Reply
  • Forum posts: 1

May 26, 2018, 2:51:09 PM via Website

here i found new web tutorial welookups.com

Reply
  • Forum posts: 13

May 29, 2018, 8:18:43 AM via Website

Haven' tried this but search MaterialSpinner in Github, it has attribute ms_dropdown_max_height which you maybe looking for , you can search other Github projects.

Reply

Recommended articles