How to create custom spinner like border around the spinner with down triangle on the right side?

前端 未结 7 2067
死守一世寂寞
死守一世寂寞 2020-11-30 18:33

I want to develop custom spinner like line around spinner with triangle at right bottom corner.
like following image

7条回答
  •  温柔的废话
    2020-11-30 19:10

    It's super easy you can just add this to your Adapter -> getDropDownView

    getDropDownView:

    convertView.setBackground(getContext().getResources().getDrawable(R.drawable.bg_spinner_dropdown));
    

    bg_spinner_dropdown:

    
    
        
        
    
    

提交回复
热议问题