0

Is it possible for an RecyclerView ItemDecoration to "know" the offsets specified by other individual ItemDecoration's in order to draw itself without overlapping the previous draw.

I know its possible to get the total offset with the LinearLayoutManager of the RecyclerView but this is not stored in a fashion that makes an individual offset determinable.

ash.davies
  • 31
  • 1
  • 3
  • Most Android code will put you in trouble if you force it to not work as intended. I will try to avoid it if does not perfectly fit your needs. – Nanoc Apr 08 '16 at 09:34
  • I'm aware of best practices, I'm stuck between a rock and a hard place – ash.davies Apr 08 '16 at 09:37
  • Well, i usually use my own "best practices" where i can, thats why i recommend you to not use the Android classes if they dont fit your needs, sometimes it takes more time to write a shorter code than a longer code. – Nanoc Apr 08 '16 at 09:41
  • The issue isn't with shorter code, there was no alternative available to achieve the desired result, without going into detail this is now the issue I'm trying to tackle, can we please stay on topic. – ash.davies Apr 08 '16 at 09:58

0 Answers0