Android Question BBCodeView blank space on bottom of the screen

Hey everyone, I needed to use the BBCodeView for customizable text which had to be displayed on the entire screen of my phone, if the text was too long the user would have to scroll down to see the rest of the text. I proceeded this way : in the designer, i created two different layouts one containing a ScrollView which I set on 100%y and 100%x (so it should fit the entire activity) and another layout containing only the BBCodeView set to fit the entire activity just like the scroll view.

In the editor, here is the code :
B4X:
Sub Activity_Create(FirstTime As Boolean)
    'Do not forget to load the layout file created with the visual designer. For example:
    'Activity.LoadLayout("Layout1")
    Activity.LoadLayout("scroll")
    ScrollView1.Panel.LoadLayout("text")
    ScrollView1.Panel.Height = 100%y
    ScrollView1.Panel.Width = 100%x
    
    TextEngine.Initialize (Activity)
    BBCodeView1.Text = $"text"$
End Sub

When I tested the app on my phone, the text is displayed correctly, the scroll is working but the text is only displayed in a portion of the screen, there is a black space going up from the bottom of my screen I can't find where I made a mistake.

Thanks in advance for the assistance.
 
Top