Remove Spacing or Padding in android Spinner

后端 未结 14 1767
旧时难觅i
旧时难觅i 2020-12-15 16:01

I\'m using android spinner and edittext from support lib v21. I would like to align text to left the same like edittext as shown in figure. But, deafult spinner include spac

14条回答
  •  囚心锁ツ
    2020-12-15 16:35

    Replace android.R.layout.simple_spinner_item layout from code by new spinner_item layout

    Code for spinner_item:

    
    
    

    This will remove an extra margin and you can style it according to your requirement.Thanks.

提交回复
热议问题