Oh well, it was a nightmare when I first encountered this problem. It took me a couple of hours to figure out what was going wrong. The problem was that I had enabled ProGuard and the member field mLeftDragger
was obfuscated. I had to tell ProGuard not to obfuscate any of the class members of DrawerLayout
, which belonged to the package android.support.v4.widget
I added the following in proguard-project.txt
-keepclasseswithmembernames class android.support.v4.widget.** { *; }
and everything was working like charm as before.