Android Question Hide Action Bar logo/Icon

CaesarLike

New Member
Licensed User
Longtime User
Hi there,

I am new to B4A and android programming, so this may already have been asked previously, but I am unable to find the answer to this. Can someone tell me if it is possible to hide the application icon when displaying the action bar? I want to be able to display the activity label without an icon showing next to it.
 

Peter Simpson

Expert
Licensed User
Longtime User
Hello,
The way that I do it is by adding the StdActionBar library, then add the following lines to your code.
B4X:
'Use this code
Sub Activity_Create(FirstTime As Boolean)
    Dim StdAB As StdActionBar
        StdAB.Initialize("StdAB")
        StdAB.Icon = Null
        StdAB.ShowUpIndicator = False
End Sub

I'm not saying that this is the only way, but this is how I do it if needed...
 
Upvote 0
Top