luizgrp / SectionedRecyclerViewAdapter

An Adapter that allows a RecyclerView to be split into Sections with headers and/or footers. Each Section can have its state controlled individually.
MIT License
1.68k stars 372 forks source link

Add SectionAdapterListUpdateCallback #188

Closed luizgrp closed 4 years ago

luizgrp commented 4 years ago

Add SectionAdapterListUpdateCallback so it can be used with DiffUtil to dispatch changes to a SectionAdapter.

Update example 8 with example of usage.

luizgrp commented 4 years ago

Result: device-2019-11-21-221116

codecov-io commented 4 years ago

Codecov Report

Merging #188 into develop will increase coverage by 0.14%. The diff coverage is 100%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop     #188      +/-   ##
===========================================
+ Coverage     91.9%   92.04%   +0.14%     
===========================================
  Files            6        7       +1     
  Lines          605      616      +11     
  Branches        79       79              
===========================================
+ Hits           556      567      +11     
  Misses          26       26              
  Partials        23       23
Impacted Files Coverage Δ
...rviewadapter/SectionAdapterListUpdateCallback.java 100% <100%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 56e49bc...1b82a14. Read the comment docs.