Comments (7)
I am Also Having Same problem btw can u tell me if it cause the force close or not
from ldrawer.
I supposed that I did something wrong while implementing the drawer in my application, so I decided to check the sample application whether it has the same problem. I checked the logcat of the sample application on Galaxy I9500 and it reported the same exception thrown. So no doubt this is the issue of the library.
@parthnvs, the sample application does not force close, but some manual testing of the application that I'm working on has shown that it force closes when you touch the area in the right of the drawer (the empty area when the drawer is opened) with the following exception:
10-24 14:52:47.732 26942-26942/<some_package> E/AndroidRuntime﹕ FATAL EXCEPTION: main
java.lang.NullPointerException
at android.support.v4.widget.DrawerLayout.isContentView(DrawerLayout.java:964)
at android.support.v4.widget.DrawerLayout.onInterceptTouchEvent(DrawerLayout.java:990)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1909)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2270)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1967)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2270)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1967)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2270)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1967)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2270)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1967)
at com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchTouchEvent(PhoneWindow.java:2182)
at com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1512)
at android.app.Activity.dispatchTouchEvent(Activity.java:2466)
at android.support.v7.app.ActionBarActivityDelegateICS$WindowCallbackWrapper.dispatchTouchEvent(ActionBarActivityDelegateICS.java:268)
at com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchTouchEvent(PhoneWindow.java:2130)
at android.view.View.dispatchPointerEvent(View.java:7641)
at android.view.ViewRootImpl.deliverPointerEvent(ViewRootImpl.java:3682)
at android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:3613)
at android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:4804)
at android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:4783)
at android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java:4875)
at android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:185)
at android.os.MessageQueue.nativePollOnce(Native Method)
at android.os.MessageQueue.next(MessageQueue.java:125)
at android.os.Looper.loop(Looper.java:124)
at android.app.ActivityThread.main(ActivityThread.java:5328)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1102)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:869)
at dalvik.system.NativeStart.main(Native Method)
The application's main activity has a container with fragment with ListView inside.
UPD: The application does not crash anymore. The problem was that I've put the FrameLayout
container outside of the DrawerLayout
. However, NoSuchMethodException problem remains.
from ldrawer.
how did you do the icon animation, I didn't find it in sample application
from ldrawer.
I 'm also having the same Exception. The app. does not force close but in Logcat I'm receiving error log;
java.lang.NoSuchMethodException: setHomeAsUpIndicator
java.lang.NoSuchMethodException: setHomeActionContentDescription
Any solutions?
from ldrawer.
setHomeAsUpIndicator
setHomeActionContentDescription
Both methods are added in API Level 18.
Check sdk build verision.
from ldrawer.
i'm having the folllowing error when i tried to run the LDrawer sample project 😱 .
01-06 11:26:18.276 12516-12516/com.ikimuhendis.ldrawer.sample E/com.ikimuhendis.ldrawer.ActionBarDrawerToggle﹕ setActionBarUpIndicator
java.lang.NoSuchMethodException: setHomeActionContentDescription [int]
at java.lang.Class.getConstructorOrMethod(Class.java:460)
at java.lang.Class.getDeclaredMethod(Class.java:685)
at com.ikimuhendis.ldrawer.ActionBarDrawerToggle.setActionBarDescription(ActionBarDrawerToggle.java:161)
at com.ikimuhendis.ldrawer.ActionBarDrawerToggle.onDrawerClosed(ActionBarDrawerToggle.java:122)
at com.ikimuhendis.ldrawer.sample.SampleActivity$2.onDrawerClosed(SampleActivity.java:51)
at android.support.v4.widget.DrawerLayout.dispatchOnDrawerClosed(DrawerLayout.java:631)
at android.support.v4.widget.DrawerLayout.updateDrawerState(DrawerLayout.java:611)
at android.support.v4.widget.DrawerLayout$ViewDragCallback.onViewDragStateChanged(DrawerLayout.java:1632)
at android.support.v4.widget.ViewDragHelper.setDragState(ViewDragHelper.java:873)
at android.support.v4.widget.ViewDragHelper$2.run(ViewDragHelper.java:335)
at android.os.Handler.handleCallback(Handler.java:605)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4441)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:823)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:590)
at dalvik.system.NativeStart.main(Native Method)
How can i solve it? Any help??? 😔
from ldrawer.
Using support library is quite basic solution. Sorry about that but this project is deprecated.
from ldrawer.
Related Issues (20)
- this Library can do with Android 2.3.3 and SupportActionbar HOT 1
- Getting null pointer exception HOT 1
- getActionBar() causes NullPointerException HOT 2
- Error:Execution failed for task ':app:processDebugManifest'. HOT 3
- Not work with min api 9 HOT 5
- No overflow icon
- It can't work in 'com.android.support:appcompat-v7:22.0.0'? HOT 1
- Drawer doesn't close if it's open and back is pressed HOT 2
- setHomeAsUpIndicator 报错误 HOT 6
- Is LDrawer support android.support.v7.app.ActionBarActivity ? HOT 5
- 【Solution】If you get errors when using setHomeAsUpIndicator, getActionBar or setHomeActionContentDescription, try the code below
- Icon for each item in drawer HOT 1
- Unreachable chunk HOT 1
- Drawer Icon doesn't change HOT 1
- Subcategory
- can i use it without drawer?
- No Hamburger
- Error:Execution failed for task ':processDebugManifest'. > No record for key [data]
- Error:Execution failed for task ':app:processDebugManifest'. > Manifest merger failed : uses-sdk:minSdkVersion 9 cannot be smaller than version 14 declared in library [com.android.support:design:26.0.0-alpha1] C:\Users\klightoftheworld\.android\build-cache\076d9e56e1088709047f81c5062558fc68ba759f\output\AndroidManifest.xml Suggestion: use tools:overrideLibrary="android.support.design" to force usage HOT 1
- getActionBar() will report an error in android.support.v7.app.* HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ldrawer.