-1

In My MainActivity there is more than 3 recyclerViews. so in this case i want to show only first 3-4 items of every List and remaining item will be displayed in click or viewMore Option. Here is a Screenshot of one app which is actually doing the same thing.

ScreenShot and url of app

suppose the list has 10 items, show only first 3 and rest as viewmore option. that option buttion can be setVisibiity but but about show only first 3 cards and stop scroling

thanks in advance.

xbadal
  • 1,136
  • 1
  • 10
  • 24

1 Answers1

2
  • While setting the adapter at first, only put first 3/4 items in your List/ArrayList.
  • Upon clicking on a button(or your any click-able view of choice), put all items in your List/ArrayList and then reload your recycler view.
Community
  • 1
  • 1
fluffyBatman
  • 5,304
  • 3
  • 19
  • 24
  • Thats Fine, i implemented it but providing only limited items. and rest with button, now problem is that when its runs on smaller device it becomes Scrollable. how to avoid that @fluffy and AndiGeeky. – xbadal Mar 16 '17 at 06:09
  • You gotta extend a layout manager to prevent scrolling. See this: http://stackoverflow.com/questions/30531091/how-to-disable-recyclerview-scrolling – fluffyBatman Mar 16 '17 at 06:20