Save and retrieve RecyclerView position | Android Studio

Поділитися
Вставка
  • Опубліковано 1 жов 2024
  • #itCoder #AndroidDevelopment #Java #AndroidStudio
    This video shows how to save the scroll position of RecyclerView. And then restore it the next time you turn on the application using Shared Preferences.
    Source code on GitHub:
    github.com/gif...
    More projects on my GitHub:
    github.com/gif...
    This music is used in the video:
    Comfort Fit - Sorry
    Destiny & Time - Ancient
    Density & Time - Whirlpool

КОМЕНТАРІ • 10

  • @dronmaslov7960
    @dronmaslov7960 4 роки тому +2

    здравствуйте, а можноли сделатьть так :все данные у нас отображаются в рециклервайв щелкаешь по одной записи (кардвайв) переходишь в новый лайоут там отображается запись из рециклервайва принадлежаие по щелкнутому кардвайву, на этом лайоуте лежат две кнопки при нажатие на которые отображаются, следущая и предыдущая записи в рециклервайв соответственно

    • @iJuce
      @iJuce 2 роки тому

      yes. you could use safeargs or bundles to pass data to next activity or fragment

  • @omkarp9943
    @omkarp9943 Рік тому

    Will this method work if my recycler view is in one fragment + I am fetching data through Internet...and When user come back from another fragment to this one?

  • @tanvirahmad4274
    @tanvirahmad4274 3 роки тому +1

    Excellent

  • @rounakgupta5586
    @rounakgupta5586 2 роки тому

    How to move messaged me with number of message in recycler view on top like whats app

  • @hbproph1
    @hbproph1 3 роки тому +1

    This is amazing that you! 👍

  • @OverwatchUnit
    @OverwatchUnit 4 роки тому

    Thanks mate.

  • @MrLOLs1
    @MrLOLs1 4 роки тому

    Thanks