How to limit the height of Spinner drop down view in Android

后端 未结 6 803
盖世英雄少女心
盖世英雄少女心 2020-11-28 04:34

Please suggest any approach which i use to create it .

Query : I am creating 2-Spinner view , where i have to add Country/Cities li

6条回答
  •  粉色の甜心
    2020-11-28 05:11

    You can use this awesome library MaterialSpinner that will do all the hard work for you.

    Download: implementation 'com.jaredrummler:material-spinner:1.3.1'

    fileName.xml :

    
    

    set height using app:ms_dropdown_max_height="400dp"

提交回复
热议问题