How to change color of Android ListView separator line?

前端 未结 9 1586
时光取名叫无心
时光取名叫无心 2020-11-28 00:08

I want to change color of ListView separator line. Any help would be appreciated.

9条回答
  •  [愿得一人]
    2020-11-28 00:56

    You can also get the colors from your resources by using:

    dateView.setDivider(new ColorDrawable(_context.getResources().getColor(R.color.textlight)));
    dateView.setDividerHeight(1);
    

提交回复
热议问题