5

I have a RecyclerView in a NestedScrollview. I want my RecyclerView wrap its content for this im using a custom Linear Layout Manager. Which wrap RecyclerView content and working fine.

I achieve using this library

which I found in this post.

Now I want to use GridLayoutManager for grid view which will wrap its content. Can Anyone Help?

Community
  • 1
  • 1
Suvro
  • 691
  • 1
  • 6
  • 8
  • Can you please post the relevant parts of your code? – user1438038 Nov 10 '15 at 10:23
  • *grid view which will wrap its content* , I did not understand this part.Can you explain a bit more. – Droidekas Nov 10 '15 at 10:45
  • Check out [this](http://stackoverflow.com/a/32526403) answer. Hope it helps! – Denis Nov 10 '15 at 11:47
  • i am using RecyclerView in NestedScrollview.. So RecyclerView dont show its item list.. so i want to calculate its height according to its total item. Then set its height to that value. – Suvro Nov 10 '15 at 12:20
  • I believe my explanation here will help you: http://stackoverflow.com/a/33849954/1464539 – Dpedrinha Nov 21 '15 at 23:46

0 Answers0