jmartinesp / SpannedGridLayoutManager

Android RecyclerView.LayoutManager that resizes and reorders views based on SpanSize
MIT License
600 stars 105 forks source link

Glide preloader exception #17

Open d3bt3ch opened 6 years ago

d3bt3ch commented 6 years ago

@Arasthel I don't know whether it would be possible or not but because 'SpannedGridLayoutManager' has not been extended from 'LinearLayoutManager' a lot of code is breaking including the glide preloader component.

d3bt3ch commented 6 years ago

@Arasthel No reply for over 6 months.

jmartinesp commented 6 years ago

Sorry, but it seems like this is a Glide limitation.

There are 2 solutions to this issue:

  1. Make the LayoutManager extend LinearLayoutManager. It might be possible, but I'd need to do several tests first to check that nothing breaks. Also, test it with some other libraries like this to check if the integration actually works as intended.
  2. Modify the code of the Preloader to use any LayoutManager, as right now LinearLayoutManager is forcefully casted. Then, test if it works with this LayoutManager.

I might try to do the first, but I don't have much time right now, so don't expect anything soon.