Giter Club home page Giter Club logo

Comments (7)

lazypixelIn avatar lazypixelIn commented on July 21, 2024

I am Also Having Same problem btw can u tell me if it cause the force close or not

from ldrawer.

F1orin avatar F1orin commented on July 21, 2024

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/AndroidRuntimeFATAL 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.

jamessg avatar jamessg commented on July 21, 2024

how did you do the icon animation, I didn't find it in sample application

from ldrawer.

roxx avatar roxx commented on July 21, 2024

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.

leo2013 avatar leo2013 commented on July 21, 2024

setHomeAsUpIndicator
setHomeActionContentDescription
Both methods are added in API Level 18.
Check sdk build verision.

from ldrawer.

aristide avatar aristide commented on July 21, 2024

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.

salimkayabasi avatar salimkayabasi commented on July 21, 2024

Using support library is quite basic solution. Sorry about that but this project is deprecated.

from ldrawer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.