1. Are you ready for the Galaxy S20? Here is everything we know so far!

RecyclerView Scrolling

Discussion in 'Android Development' started by umtblbl, Aug 6, 2019.

  1. umtblbl

    umtblbl Member
    Thread Starter

    I set the RecyclerView layout_height property to 200dp higher than the screen height. For example, when I have 3 elements in RecyclerView, I would like to have some scrolling thanks to dp. However, scrolling does not occur. Does anyone have a solution?
     


  2. wseng92

    wseng92 Android Enthusiast

  3. umtblbl

    umtblbl Member
    Thread Starter

    Hi thank you very much for your comment, please excuse me for replying late. For my project, I thought it would be more useful to add it as a header on the RecyclerView. I added, but the problem is; for example, I would like to get some amount of scroll when there are 3 elements in the recyclerView list. (The header is hidden and visible again)
    As a solution I tried this; I made the size of the recyclerView layout_height = screen size + screen size 20% but I had to add scrollView to be scrolled, in which case the recyclerView.addOnScrollListener method is not triggered.
     
  4. wseng92

    wseng92 Android Enthusiast

    Make animation in recyclerView is not my area of expertise , sorry
     
Loading...
Similar Threads - RecyclerView Scrolling
  1. GotParty
    Replies:
    4
    Views:
    971
  2. Artem Polovin
    Replies:
    0
    Views:
    458
  3. Artem Polovin
    Replies:
    0
    Views:
    434
  4. Hardik Thummar
    Replies:
    0
    Views:
    682
  5. umtblbl
    Replies:
    9
    Views:
    1,846
  6. umtblbl
    Replies:
    0
    Views:
    663
  7. james04gr
    Replies:
    1
    Views:
    584
  8. Lalox3
    Replies:
    6
    Views:
    747
  9. Jatin Soni
    Replies:
    2
    Views:
    904
  10. Jazelle Ann Capili Capuli
    Replies:
    0
    Views:
    991

Share This Page

Loading...