Reputation: 71
net.simonvt.menudrawer.SlidingDrawer
is not working in Android Kitkat. But working in Android Lollipop.
Getting error
java.lang.ClassCastException: android.widget.LinearLayout$LayoutParams cannot be cast to android.widget.AbsListView$LayoutParams
I had set multiDexEnabled
true in build.gradle
also added the follwing in application
@Override
protected void attachBaseContext(Context base) {
super.attachBaseContext(base);
MultiDex.install(this);
}
Upvotes: -1
Views: 76
Reputation: 71
I have a custom application class defined in Android Manifest, extend it from MultiDexApplication instead of Application solved the issue.
Upvotes: 0
Reputation: 438
This is a deprecated library. I'd suggest you take a look at Android Navigation Drawer. Also Mutidex is only used when your application exceeds Android maximum number of methods i.e. 65,536 in a single Dex file. You should only enable Multidex if your build fails because this limit has exceeded. Cheers :)
Upvotes: 0