StevenRudenko / ActionsContentView

ActionsContentView is an standalone library implements actions/content swiping view (AKA Side Navigation UI Pattern, AKA Facebook side menu). The library doesn't use any specific code introduced in new Android SDK versions. This allows develop an application with an action/content swiping view for every version of Android from 2.2 and up.
https://play.google.com/store/apps/details?id=sample.actionscontentview
441 stars 179 forks source link

java.lang.NullPointerException #47

Closed bilalsaeed closed 9 years ago

bilalsaeed commented 9 years ago

Hello Steven,

I am using android studio and when I run your example code I get null pointer exception. Caused by: java.lang.NullPointerException at sample.actionscontentview.ExamplesActivity.onCreate(ExamplesActivity.java:60) at android.app.Activity.performCreate(Activity.java:5426) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1105) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2269)             at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2363)             at android.app.ActivityThread.access$900(ActivityThread.java:161)             at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1265)             at android.os.Handler.dispatchMessage(Handler.java:102)             at android.os.Looper.loop(Looper.java:157)             at android.app.ActivityThread.main(ActivityThread.java:5356)             at java.lang.reflect.Method.invokeNative(Native Method)             at java.lang.reflect.Method.invoke(Method.java:515)             at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1265)             at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1081)             at dalvik.system.NativeStart.main(Native Method)

here is the line 60: viewActionsList.setAdapter(actionsAdapter);

I would really appreciate your response.

thanks, Bilal Saeed.

StevenRudenko commented 9 years ago

Hello Bilal,

I've checked current project state and it seems it works fine for me. According to what I see at exception stacktrace there is actions listview missed. Please check that you've added it to action.xml