How to install it like it was in B4A?
Only B4XMainPage needs this.
Only B4XMainPage needs this.
Thank you!Go to Manifest Editor and edit as following:
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
just a questionThank you!
The icon appeared on all pages of the application.
How can I make it appear only on B4XMainPage?
This is what I also thought of but I guess the OP is asking about the way he used to do during the older days.just a question
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?
just use a panel and an imageview thats it
#Region Activity Attributes
#FullScreen: False
#IncludeTitle: False
#End Region
Did you do as I described above?In my current projects, I am using panel
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.Now I decided to try to transfer the project to B4XPage.
just to learn: Wouldn't just Imageview be enough?just a question
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?
just use a panel and an imageview thats it
I started this topic with something simple as it seemed to me, adding, an icon.just to learn: Wouldn't just Imageview be enough?
Why is the panel also needed?
I usually use FullScreen: True#FullScreen: False
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.Why is the panel also needed?
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>just to learn: Wouldn't just Imageview be enough?
Why is the panel also needed?
How do you install your panel to overlap the Activity panel?I usually use FullScreen: True
If it is Full screen then there is no title bar.How do you install your panel to overlap the Activity panel?
On my smartphone withIf it is Full screen then there is no title bar.
Sorry, I don't get it.Post #25 contains my working option.
Why is he worse?
Let's try without glassesEither you or me need a new glasses.
Your and my options work correctly.Are you asking why your code not work or mine?