manumaticx / Ti.DrawerLayout-Demo-Alloy-App

This has moved here:
https://github.com/manumaticx/NavigationDrawer-Demo
18 stars 9 forks source link

Burger To Arrow animated icon. #1

Closed GeraudBourdin closed 9 years ago

GeraudBourdin commented 9 years ago

I do not know how to exclude files from the pull request (sorry). Only the index.js have to be updated.

To set the animation just set drawerArrowIcon to true in the createDrawer : Alloy.Globals.drawer = TiDrawerLayout.createDrawer({ leftView : menu.getView(), centerView : Alloy.Globals.contentView, leftDrawerWidth : 240 leftDrawerWidth : 240, drawerArrowIcon : true });

And set the displayHomeAsUp to false:

actionBar.displayHomeAsUp = false;

I m glad it it can help :)