RecyclerView-FlexibleDivider icon indicating copy to clipboard operation
RecyclerView-FlexibleDivider copied to clipboard

the divider show in left and right even if set margin

Open Sum41forever opened this issue 7 years ago • 2 comments

image


HorizontalDividerItemDecoration mItemDecoration = new HorizontalDividerItemDecoration.Builder(this)
                .color(ContextCompat.getColor(mContext, R.color.color_333333))
                .sizeResId(R.dimen.px_1)
                .marginResId(R.dimen.dp_16, R.dimen.dp_16)
                .build();
mRecyclerView.addItemDecoration(mItemDecoration);

Sum41forever avatar Feb 12 '18 09:02 Sum41forever

I also have this issue. Any solutions ?

nabeelpkl avatar Apr 04 '18 04:04 nabeelpkl

This will be caused by the fact that the divider is drawn "outside" of the items which have the white background. So what you see is the color of the background below your items.

mishackee avatar Feb 25 '21 23:02 mishackee