An improved sliding pane for Android

Recently, the generous folks at Google released version 13 of the Support Library. In it, among other things like the newly made official Navigation Drawer, is the SlidingPaneLayout (which, I believe, debuted in the new Hangouts app).

Unfortunately, this layout has a critical omission - it doesn’t wrap to the width of the sliding pane! You can hack it together by setting a fixed-size width to the sliding pane and adjusting the left margin (different values per screen size), or you could just dig in and fix it. Actually, you don’t even have to do that, since I did it for you!

Repository on GitHub

Demonstration of the difference:

I hope someone finds this useful!


← Multi-device deployment with IntelliJ/Android Studio Samsung agency is buying off StackOverflow users_→