The libslidemenu library does not work for Android 2.3

综合技术 2017-11-15

I'm using ActionShrelockBar & libslidemenu library.

The slide menu work's fine for 2.3 to 4.2.

But when i tried it in 4.3 latest version of android the slidemenu crashes .

I tried by adding support library but no go.

07-26 02:04:14.400: E/AndroidRuntime(785): FATAL EXCEPTION: main
07-26 02:04:14.400: E/AndroidRuntime(785): java.lang.ClassCastException:      com.android.internal.widget.ActionBarOverlayLayout cannot be cast to android.widget.FrameLayout
07-26 02:04:14.400: E/AndroidRuntime(785):  at com.coboltforge.slidemenu.SlideMenu.show(SlideMenu.java:317)
07-26 02:04:14.400: E/AndroidRuntime(785):  at com.coboltforge.slidemenu.SlideMenu.show(SlideMenu.java:260)
07-26 02:04:14.400: E/AndroidRuntime(785):  at com.hrh.lba.fragments.CategoryFragment.onOptionsItemSelected(CategoryFragment.java:326)
07-26 02:04:14.400: E/AndroidRuntime(785):  at android.support.v4.app.Watson.onMenuItemSelected(Watson.java:127)
07-26 02:04:14.400: E/AndroidRuntime(785):  at  com.actionbarsherlock.ActionBarSherlock.callbackOptionsItemSelected(ActionBarSherlock.java:603)
07-26 02:04:14.400: E/AndroidRuntime(785):  at com.actionbarsherlock.internal.ActionBarSherlockNative.dispatchOptionsItemSelected(ActionBarSherlockNative.java:78)
07-26 02:04:14.400: E/AndroidRuntime(785):  at com.actionbarsherlock.app.SherlockFragmentActivity.onMenuItemSelected(SherlockFragmentActivity.java:205)
07-26 02:04:14.400: E/AndroidRuntime(785):  at com.android.internal.widget.ActionBarView$3.onClick(ActionBarView.java:171)
07-26 02:04:14.400: E/AndroidRuntime(785):  at android.view.View.performClick(View.java:4240)
07-26 02:04:14.400: E/AndroidRuntime(785):  at android.view.View$PerformClick.run(View.java:17721)
07-26 02:04:14.400: E/AndroidRuntime(785):  at android.os.Handler.handleCallback(Handler.java:730)
07-26 02:04:14.400: E/AndroidRuntime(785):  at android.os.Handler.dispatchMessage(Handler.java:92)
07-26 02:04:14.400: E/AndroidRuntime(785):  at android.os.Looper.loop(Looper.java:137)
07-26 02:04:14.400: E/AndroidRuntime(785):  at android.app.ActivityThread.main(ActivityThread.java:5103)
07-26 02:04:14.400: E/AndroidRuntime(785):  at java.lang.reflect.Method.invokeNative(Native Method)
07-26 02:04:14.400: E/AndroidRuntime(785):  at java.lang.reflect.Method.invoke(Method.java:525)
07-26 02:04:14.400: E/AndroidRuntime(785):  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)

Tried with this patch .

And it's working great for 4.3 now .

Patch

Hello, buddy!

责编内容by:Hello, buddy! (源链)。感谢您的支持!

您可能感兴趣的

Android Studio3.0填坑指南 序言 Android Studio3.0 作为这个世界上走在最前沿的生物“猿”,怎么能对新事物一无所知呢,10月26日,随着And...
Java.util.regex.P... I have modified the BluetoothChat code to receive serial data from a micro-contr...
FloatWindowUtils 实现及事件冲突解决详解 悬浮窗 悬浮窗即可以显示在宿主应用之外的 View 视图,理论上任何 View 都能以悬浮窗形式展示在宿主应用之外甚至锁屏界面,一般在工具类应用中使用的比较...
Java简单模拟Android中Handler-Message机制 在Android中主线程与子线程的通信十分重要,Google工程师为我们提供了Handler-Message机制来解决他们之间的交互问题。今天,我们就来简单理...
Stress-free SQLite with Anko This post is about Anko SQLite , a library promising to simplify working wit...