Android: Cannot style spinner divider

前端 未结 4 1772
傲寒
傲寒 2020-12-05 20:01

I\'m trying to create a theme for my first Android app, and it is driving me round the bend. I finally managed to figure out how to style items in a dropdown list, but now I

4条回答
  •  感情败类
    2020-12-05 20:35

    You can do it in your layout.xml

         
    

    XML STYLES ADD it

     
    

    Add to your Activity Theme

          
    

    JAVA FILE

    your_spinnerList.setAdapter(new ArrayAdapter<>(getActivity(), android.R.layout.simple_dropdown_item_1line, timeOff_type_list));
    

    Let me know if it had been useful for you! Have a nice day!

提交回复
热议问题