Skip to content

Latest commit

 

History

History
16 lines (12 loc) · 1018 Bytes

fadeBgTappable.md

File metadata and controls

16 lines (12 loc) · 1018 Bytes

FadeBgTappable

Source code

Same layout as NonSlideOpen, except that as the drawer opens up, the background gradually gets darker. Also, the dark background is tappable. In this case, tapping the dark background closes the drawer to its peek position.

IMPORTANT: FadeBgTappable is the most hacky example out of all comprehensive examples. To make it work, a specific trick is applied (see the comments in the index file). If one can afford that the background not be tappable, it is highly recommended that examples 3 and 4 are used.

FadeBgTappable Bottom FadeBgTappable Top FadeBgTappable Left FadeBgTappable Right