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);

 

posted @ 2014-10-17 11:37  n1rAy  阅读(929)  评论(0编辑  收藏  举报