I am trying to implement custom FastScrollListener
which is working fine on every platform except Android Lollipop where its crashing on the following line:
final Field fastScrollerField = AbsListView.class.getDeclaredField("mFastScroller");
saying:
12-14 16:46:29.034: E/AndroidRuntime(29702): Caused by: java.lang.NoSuchFieldException: mFastScroller
12-14 16:46:29.034: E/AndroidRuntime(29702): at java.lang.Class.getDeclaredField(Class.java:886)
Can anyone guide me about the fix for Android Lollipop.
Found the solution be comparing AbsListView
of Lollipop with previous versions and found out the the keyword/name for getting declared feild is changed to mFastScroll
from mFastScroller
...