Sub B4XPage_Appear
ShowHideIcon(True)
txtUser.Text = ""
End Sub
Sub B4XPage_Disappear
ShowHideIcon(False)
End Sub
Sub ShowHideIcon (Show As Boolean)
Dim StdAB As StdActionBar
StdAB.Initialize("StdAB")
If Show Then
Dim AndroidResources1 As AndroidResources
Dim Mydrawable1 As BitmapDrawable
Mydrawable1 = AndroidResources1.GetApplicationDrawable("icon")
StdAB.Icon = Mydrawable1.Bitmap
Else
StdAB.Icon = Null
StdAB.ShowUpIndicator = False
End If
End Sub
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...
would not it be simpler to put a panel on the top page and an imageview with your icon. it looks like you want something to be done in the UI why do you need to do it this way?
would not it be simpler to put a panel on the top page and an imageview with your icon. it looks like you want something to be done in the UI why do you need to do it this way?
Thank you all so much for your help!
In my project with B4A, I used my own panel, which I used when installing each page
B4X:
#Region Activity Attributes
#FullScreen: False
#IncludeTitle: False
#End Region
Now I decided to try to transfer the project to B4XPage.
It turned out that using the proposed panels in B4XPage is quite difficult. I think I'll keep my approach the same.
you are not using b4xpages for no reason. the whole idea is to make it cross platform so the only way to do it cross platform is using a simple panel and an imageview.
like this it will work on b4a/b4i/b4j
i dont understand why you try so hard to choose the complicated way and not choosing the simple and right way to archive what you are asking.
would not it be simpler to put a panel on the top page and an imageview with your icon. it looks like you want something to be done in the UI why do you need to do it this way?
By using a panel, you can add imageview, labels or any kinf of views into it, set the Elevation so it can show shadow or make it look like a Title bar.
I normally like to separate my ui to parts. Top panel middle panel bottom panel etc. some panels are fix some changes.. so it is more organized like this. Like u do with html element <div>
it is also simpler like this for screen size scaling
Let's try without glasses
In message #29 you said that you use FullScreen: True, without mentioning that #IncludeTitle: False is also needed.
This misled me.