0

As you know after support library 23.2 when you put recyclerview inside scrollview as wrap_content then the scroll events work properly by using setnestedscrollviewenabled(false). But if there is a two recyclerview in a one scrollview then the second recycylerview does not wrap to its content size. Is there a way to achieve it?

aligur
  • 3,387
  • 3
  • 34
  • 51
  • Have a look at this implementation. https://github.com/comeondude/dynamic-recyclerview/wiki. The code is found here https://github.com/comeondude/dynamic-recyclerview – Reaz Murshed Oct 05 '16 at 09:54
  • i solved my problem by using NestedScrollView insted of ScrollView on the root element of layout for two recylerview in a scrollview. @ReazMurshed – aligur Oct 05 '16 at 10:00
  • 1
    I just suggested a better approach. – Reaz Murshed Oct 05 '16 at 11:45
  • Thank you but in my method there is no need to use complicated things:) it works by writing just 2 line codes – aligur Oct 05 '16 at 19:18

1 Answers1

0

i solved it by using NestedScrollView insted of ScrollView on the root element of layout.

aligur
  • 3,387
  • 3
  • 34
  • 51