SuperListview
SuperListview copied to clipboard
Error on Android L build
I'm getting the following error after updating my application to android L build:
java.lang.NoSuchMethodError: android.support.v4.widget.SwipeRefreshLayout.setColorScheme
at com.quentindommerc.superlistview.BaseSuperAbsListview.setRefreshingColor(BaseSuperAbsListview.java:213)
at com.app.activity.ConnectionActivity.onCreate(ConnectionActivity.java:54)
at android.app.Activity.performCreate(Activity.java:6015)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2178)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2280)
at android.app.ActivityThread.access$800(ActivityThread.java:141)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1202)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5064)
at java.lang.reflect.Method.invokeNative(Method.java)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:797)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:613)
at dalvik.system.NativeStart.main(NativeStart.java)
+1
Even though I tried this: myListView.getSwipeToRefresh().setColorSchemeColors(android.R.color.holo_blue_bright, android.R.color.holo_green_light, android.R.color.holo_orange_light, android.R.color.holo_red_light);
No error, but colors not appearing !
EDIT:
well, it seems the method used in the library is setColorScheme which is deprecated. So setColorSchemeColors should replace it.
Is there any way to bypass this error on api >= 16, before update? I really need to set Scheme