Commit 7dbbd8aa authored by Eliézer de Oliveira's avatar Eliézer de Oliveira

setting divider to apper in bottom of a item view

parent 18b7e2d7
......@@ -58,8 +58,8 @@ class DividerItemDecoration() : RecyclerView.ItemDecoration() {
val params = child.layoutParams as RecyclerView.LayoutParams
val top = child.bottom + params.bottomMargin
val bottom = top + divider.intrinsicHeight
val bottom = child.bottom + params.bottomMargin
val top = bottom - divider.intrinsicHeight
divider.setBounds(left, top, right, bottom)
divider.draw(c)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment