DrawerBehavior icon indicating copy to clipboard operation
DrawerBehavior copied to clipboard

Add Open/close/query

Open rubensousa opened this issue 8 years ago • 1 comments

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 iterate through the delegates. Is there any special reason for storing multiple BehaviorDelegates though? The DrawerBehavior class is instantiated for each view that sets the behavior programmatically or by XML, so why assume there's multiple views with delegates?

rubensousa avatar Jun 07 '16 14:06 rubensousa

Is there any special reason for storing multiple BehaviorDelegates though?

Pre-dates open sourcing when it was being used for multiple views at once. The assumption can be removed.

JakeWharton avatar Jul 05 '16 04:07 JakeWharton