Android Question Wrong layout

Dario126

Member
Licensed User
Longtime User
This started to happen in my project - see photos.

On layout I have one panel (panel2). On it there is one more panel (panel1) aligned on bottom. On it there are three buttons. The rest is filled with Listview.

Why do I get cutted bottom of screen (panel1 is to low)?
It happens on emulator and on real device.
When I rotate device, it is normally aligned to bottom ..

No autoscale or designer script is used, or anything within code. Only those aligmenet left&right, bottom, etc. in designer ..
 

Attachments

  • Clipboard01.png
    Clipboard01.png
    41.9 KB · Views: 251
  • Clipboard02.png
    Clipboard02.png
    59.2 KB · Views: 262

Dario126

Member
Licensed User
Longtime User
Unfortunately I can't as whole project. But I tried to strip down to problematic activities, and suddenly problem disappeared. Then I found that cause of this is that one activity if set to full screen (intro screen) due to:

B4X:
#Region  Activity Attributes

    #FullScreen: true
    #IncludeTitle: false
#End Region

and then following activity is non-full screen
B4X:
#Region  Activity Attributes
    #FullScreen: false
    #IncludeTitle: false
#End Region

Sub Activity_Pause (UserClosed As Boolean)

    'BEFORE EXIT - START EULA OR BROWSER ACTIVITY
    If Not(File.Exists(File.DirInternal, Main.SettingsFileName)) Then 
        StartActivity(Eula)
    Else 
        StartActivity(Browser)
    End If   

End Sub

In that combination I had this cutting effect for bottom panel.
When I set first activity #FullScreen: false then problem is gone.

This looks like a bug, or I'm missing something?
 
Upvote 0
Top