universengo
Member
Hello Everyone!
I'm a newbie B4A. Please help me.
I Create a lay out with two labels and one Scrollview. Two labels have the same height (40dip). I set one at the top and the last one at the bottom. The scrollview is middle of two labels. I use script general code as below:
------------------------------------------------------------------------
I use Samsung J7 Pro (1080x1920, scale = 3)
When i see in Abstract Designer, the Scrollview is full height middle of two labels.
But It is not full in my smartphone. It has a gap. I don't know how to repair this error.
Please help me.
I'm a newbie B4A. Please help me.
I Create a lay out with two labels and one Scrollview. Two labels have the same height (40dip). I set one at the top and the last one at the bottom. The scrollview is middle of two labels. I use script general code as below:
B4X:
'All variants script
'Set up FakeActionBar
lbl_Main_FakeActionBar.Height=40dip
'Set up lblCopyright
lbl_CopyRight.Height=lbl_Main_FakeActionBar.Height
'Setup ScvMain
ScvMain.Left=0
ScvMain.Top=lbl_Main_FakeActionBar.Height
ScvMain.Width=100%x
ScvMain.Height=100%y-lbl_Main_FakeActionBar.Height-lbl_CopyRight.Height
------------------------------------------------------------------------
Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.
Private lbl_Main_FakeActionBar As Label
Private scvMain As ScrollView
Private lbl_CopyRight As Label
End Sub
Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("lot_Main") ' Loads "Main" layout file
End Sub
I use Samsung J7 Pro (1080x1920, scale = 3)
When i see in Abstract Designer, the Scrollview is full height middle of two labels.
But It is not full in my smartphone. It has a gap. I don't know how to repair this error.
Please help me.
Attachments
Last edited: