ListView.setDivider,自定义的Devider

ListView lv = getListView();

ColorDrawable sage = new ColorDrawable(this.getResources().getColor(R.color.sage));

lv.setDivider(sage);

lv.setDividerHeight(1);
        ListView lv = getListView();

        PaintDrawable sage = new PaintDrawable(R.drawable.sage);

        lv.setDivider(sage);

        lv.setDividerHeight(1);

 

你可能感兴趣的:(ListView)