public View getView(int position, View row, ViewGroup container) { row=(View) inflater.inflate(R.layout.row_layout_spinner_filter, null); TextView tv=(TextView) row.findViewById(R.id.textview_spinner_filter_item_name); if(container!=null&&(container instanceof ListView)){ ListView lv=null; try{ lv=(ListView)container; }catch(Exception e){} if(lv!=null){ lv.setDivider(drawable); lv.setDividerHeight(height); } } tv.setText(getItem(position)); return row; }
The ViewGroup container comes in the form of a ListView or Spinner, so you can intercept the list and edit the delimiter.
source share