DrawerBehavior
DrawerBehavior copied to clipboard
A CoordinatorLayout behavior which mimics the functionality of DrawerLayout.
update build tool to 24.0.2. update minSdk to 9 update gradle to 2.14.1
With this people can use the behavior by referencing `@string/drawer_behavior` similar to how this is done by the support library.
The open/close methods in the DrawerBehavior class don't require any arguments (parent and child views). I had to switch the SimpleArrayMap to an ArrayMap to allow this, since we couldn't...
Fix for #11 removeCallbacks should always be called in closeDrawers. This is how it is implemented in DrawerLayout.
Fix for #11. When the drawer state is idle (ViewDragHelper.STATE_IDLE), I'm checking if onScreen is less than 1 but not 0. I noticed that it was 0.1 when it was...
This requires the open/query API. Please, check #19
If you fire an action down and up in the same frame on an edge the peek will happen and persist until the next interaction.
@JakeWharton Let me know if you want anything else. Just turn TravisCi on. https://github.com/JakeWharton/DrawerBehavior/issues/12