I worked with Etsy StaggeredGridView for a while , and I am very pleased with this, but now I have a problem that I can not solve. I need to scroll to a fixed position (in pixels or at the adapter position) in the list, and I use this (yes, the position is under the heading, as you can see):
gridView.scrollListBy(header.getHeight());
in addition, grid scrolling methods such as smoothScrollBy (int, int) are not supported by this kind of gridview. Everything works fine, but a couple of days ago I updated one of the devices that I use for testing (version Nexus 7) for Android 5.0.2 (from 4.4), and now this method no longer works, which gives me this exception
java.lang.AbstractMethodError: abstract method "void android.widget.AbsListView.fillGap(boolean)"
at android.widget.AbsListView.trackMotionScroll(AbsListView.java:4968)
at android.widget.AbsListView.scrollListBy(AbsListView.java:4785)
I would like to know why it works in Android 4.4 and gives this error in Android 5.0, for me it seems rather strange, and if you have any solution, I would really appreciate them, thank you very much for your time
source
share