码迷,mamicode.com
首页 > 其他好文 > 详细

ListView.setDivider,自定义的Devider

时间:2014-10-17 13:39:04      阅读:158      评论:0      收藏:0      [点我收藏+]

标签:style   blog   color   sp   div   log   bs   new   as   

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.setDivider,自定义的Devider

标签:style   blog   color   sp   div   log   bs   new   as   

原文地址:http://www.cnblogs.com/niray/p/4030660.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!