What are the current best practices for pull-down refresh and pull-up loading in Android development?

looked at a lot of libraries, most of which haven"t been updated for years, even limited support for RecyclerView, and most projects are very intrusive. Official SwipeRefreshLayout, the style is not customizable, and does not support loading more; by listening to RecyclerView scrolling to the end to load, the actual effect is not ideal.

at present, my project controls the last piece of data through adapter, and there is no more data in loading through different Recyclerview ViewType, but I feel that this part is not suitable for adapter to do. I don"t know what solution you are using in the project, or is there any relatively new library that can be easily expanded and customized?

Jul.14,2022

some drop-down refresh pull-up load open source libraries worth learning

full-featured AnimRefreshRecyclerView

  • choose different layout managers according to different effects of the list
  • split lines according to different layout manager settings:
  • set Header and Footer
  • manually refresh

AnimRefreshRecyclerView

:

https://github.com/shichaohui...

XRefreshView

  • Recyclerview
  • BannerRecyclerview
  • LinearLayoutRecyclerview

:

https://github.com/huxq17/XRe...

BGARefreshLayout-Android

  • logo
  • qq

:


:

https://github.com/bingoogola...

TwinklingRefreshLayout

  • RefreshLayout
  • RecyclerView
  • AbsListView,
  • ScrollView
  • WebView

    :

:

https://github.com/lcodecorex...

Android-SmartRefreshLayout

  • ViewAbsListViewRecyclerViewWebView....View
  • Header Footer .
  • ListView RecyclerViewAppBarLayoutCoordinatorLayout NestedScrolling.
  • Android Studio Xml
  • DefaultXmlJavaCode Header Footer.
  • .
  • OnRefreshListener OnMultiPurposeListener.
  • .
  • App.
  • HeaderFooter:
  • Content-wrap_content
  • private
  • ListviewRecyclerViewScrollViewWebView...View

image

:

https://github.com/scwang90/S...

FunGameRefreshView

https://github.com/Hitomis/Fu...

MarkMjw/PullToRefresh

MaxwinXListView ScrollView

image

:

https://github.com/MarkMjw/Pu...

Android-PullToRefresh

Android-PullToRefreshListViewExpandableListViewGridViewWebViewScrollViewHorizontalScrollViewViewPagerListFragment

image

:

https://github.com/chrisbanes...

GooglegoogleSwipeRefreshLayout

:

https://github.com/baoyongzha...

image

BeerSwipeRefreshLayout

image

:

https://github.com/recruit-li...

PullLoadMoreRecyclerView

RecyclerViewRecyclerView

image

:

https://github.com/WuXiaolong...

PullToRefreshAndLoad

:


:

https://github.com/jingchenUS...

SuperRecycleView

  • XrecyclerView BaseRecyclerViewAdapterHelperRecyclerView


2017184

UI

NDK360

:

https://github.com/supercwn/S...

+


drop-down refresh I think Google's official SwipeRefreshLayout can actually meet the conditions, but it's not very clear if I pull up and load, because I haven't used


in the project yet.

saw SmartRefreshLayout https://github.com/scwang90/S..., and felt that it basically met the requirements

.

the author also has introduction article on SegmentFault, which looks very powerful

.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1ea700b-1e20.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1ea700b-1e20.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?