titanium - Cannot call method onCreateOptionsMenu () on startup for napp drawer -


i have problem nap drawer module.i have code:

**drawer = napdrawermodule.createdrawer({ //parameter drawer });** 

then have: *

*drawer.getactivity().oncreateoptionsmenu = function(e) { //code creation menu** } 

problem when started application method oncreateoptionsmenu() not called menu item not show up.when pressed physical menu button show up. noticed problem napdrawer.i tried make simple ti.ui.createwindow(),add method oncreateoptionsmenu() , work. don't know problem drawer.i use titanium 5.0 , target android sdk 22.

i found solution problem above.anyone has kind of problem next solution work me.you need add in nap drawer create method next attribute:hamburgericon:true


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

post - imageshack API cURL -

dataset - MPAndroidchart returning no chart Data available -