Android Question How to change "MainPage" Title?

xiaoyao

Active Member
Licensed User
Longtime User
It is best to set the title directly in the interface designer (different for each window), or cancel the title bar.

B4X:
main activity:
    Sub Activity_Create(FirstTime As Boolean)
    Activity.LoadLayout("Layout")
    Activity.Title="main title"
End Sub
private Sub Button2_Click
    StartActivity(form2)
End Sub
------------------
Form2 activity:
Sub Activity_Create(FirstTime As Boolean)
    'Do not forget to load the layout file created with the visual designer. For example:
    Activity.LoadLayout("form2ui")
    Activity.Title="title2"
End Sub

ok ,it's my error,
There are still some parts of the designer that are not fully translated. The multi-language package is not yet complete. I made the width of the settings property bar too small, so I can't see it.
Therefore, truly visual design will be more convenient, allowing a novice and inexperienced person to set 100% correct and wrong settings at once.
Setting up title hiding, full screen, and font images is actually not that difficult. If the IDE interface is opened and everyone develops plug-ins together, perhaps such functions will also be developed.

set mainpage title.png
 
Last edited:
Upvote 0

aeric

Expert
Licensed User
Longtime User
It is best to set the title directly in the interface designer (different for each window), or cancel the title bar.

B4X:
main activity:
    Sub Activity_Create(FirstTime As Boolean)
    Activity.LoadLayout("Layout")
    Activity.Title="main title"
End Sub
private Sub Button2_Click
    StartActivity(form2)
End Sub
------------------
Form2 activity:
Sub Activity_Create(FirstTime As Boolean)
    'Do not forget to load the layout file created with the visual designer. For example:
    Activity.LoadLayout("form2ui")
    Activity.Title="title2"
End Sub

ok ,it's my error,
There are still some parts of the designer that are not fully translated. The multi-language package is not yet complete. I made the width of the settings property bar too small, so I can't see it.
Therefore, truly visual design will be more convenient, allowing a novice and inexperienced person to set 100% correct and wrong settings at once.
Setting up title hiding, full screen, and font images is actually not that difficult. If the IDE interface is opened and everyone develops plug-ins together, perhaps such functions will also be developed.

View attachment 158385
It is wrong to reply on other's old thread. Please start your own thread for other question. Please read and follow the forum's rule.
 
Upvote 0
Top