appcelerator titanium - hide navigation bar android -


is possible hide permanently android bottom navigation in appcelerator titanium? many questions subject no fine solutions.

<fullscreen> true </fullscreen>  in tiapp doesn't work titanium 5.5.1  $.index.addeventlistener('open', function(e) {   $.index.activity.actionbar.hide();});  doesn't work.  'window':{navbarhidden:true,tabbarhidden:true,fullscreen:true} in tss  doesn't work etc. 

thank you.

this method worked me, set app fullscreen without nav bar , tab bar.

assuming main window's id not set or set 'index', should work, it's approach you've tried:

$.index.addeventlistener('open', function(e) {      $.index.activity.actionbar.hide(); }); 

in app.tss or index.tss:

"window":{     navbarhidden:true,     tabbarhidden:true,     fullscreen:true } 

in tiapp.xml:

<fullscreen>true</fullscreen> <navbar-hidden>true</navbar-hidden> 

if issue still same, try add (specify theme) application or activity tags of manifest section inside tiapp.xml:

android:theme="@style/theme.noactionbar" 

additional info:

app.tss: global styles index.tss: style index view 

verify if id of window correct, if there style overwriting pretended one.

add console.log inside window open method, check if exists action bar references:

if($.index) {      console.log("window");      if($.index.activity) {          console.log("activity");          if($.index.activity.actionbar) {              console.log("action bar");              if($.index.activity.actionbar.hide) {                  console.log("hide - try hide");                  $.index.activity.actionbar.hide();             }         }     } } 

check out article @ appcelerator blog: hiding android actionbar

if you're trying hide soft navigation bar, don't know titanium sdk option, once i've answered question, yours, , fokke zandbergen comment this:

what want possible since titanium 5.2 using <fullscreen>true</fullscreen> in tiapp.xml.   

android documentation: using immersive full-screen mode

appcelerator documentation: hide soft navigation bar

if of doesn't work try following module:

appcelerator module - marketplace (free): immersive view

also found in other question: how hide soft navigation bar on android titanium?


Comments

Popular posts from this blog

php - How to add and update images or image url in Volusion using Volusion API -

javascript - jQuery UI Splitter/Resizable for unlimited amount of columns -

javascript - IE9 error '$'is not defined -