why the divider color is not the same as that it should be?
jhwsx opened this issue · 3 comments
jhwsx commented
Hi,
I use the API as the doc says:
recyclerView.addItemDecoration( new HorizontalDividerItemDecoration.Builder(this) .color(Color.RED) .sizeResId(R.dimen.divider) .marginResId(R.dimen.leftmargin, R.dimen.rightmargin) .build());
However, I find that the color that shows is not the same as that it should be.
Could you please help me out?
xushaun commented
I have the same problem
xushaun commented
I find why i encounter this problem
I used colorResId(R.color.line_color) instead of color(R.color.line_color) ,this solve the problem
jhwsx commented
I have had a try in my code according to you. It really works. If only I has known this half a month ago.