Hi all,
I made a simple app in Java and it used these two methods :
public abstract void setDisplayShowTitleEnabled (boolean showTitle)
public abstract void setDisplayShowHomeEnabled (boolean showHome)
To hide the ActionBar when I used the Tabs mode.
I tried :
But it fails :
In Java the code is :
Thanks in advance !
I made a simple app in Java and it used these two methods :
public abstract void setDisplayShowTitleEnabled (boolean showTitle)
public abstract void setDisplayShowHomeEnabled (boolean showHome)
To hide the ActionBar when I used the Tabs mode.
I tried :
B4X:
Dim ActionBar,Activity_ As JavaObject
Activity_.InitializeStatic("android.app.Activity")
ActionBar.InitializeStatic("android.app.ActionBar")
ActionBar = Activity_.RunMethod("getActionBar",Null) 'Fail here
ActionBar.RunMethod("setDisplayShowHomeEnabled", Array As Object(False))
ActionBar.RunMethod("setDisplayShowTitleEnabled",Array As Object(False))
But it fails :
B4X:
java.lang.IllegalArgumentException: expected receiver of type android.app.Activity, but got java.lang.Class<android.app.Activity>
B4X:
getActionBar().setDisplayShowTitleEnabled(false);
getActionBar().setDisplayShowHomeEnabled(false);
Thanks in advance !
Last edited: