Hello friends
I have a problem trying to read the full height of the full screen views. Because I want to open the layout within an xCustomListView.
Could someone help me with this?
The code is attached.
I have a problem trying to read the full height of the full screen views. Because I want to open the layout within an xCustomListView.
Could someone help me with this?
The code is attached.
B4X:
Sub Activity_Create(FirstTime As Boolean)
If FirstTime=True Then
Activity.LoadLayout("layout_configuracoes_clv")
Dim fraContainer As Panel
fraContainer.Initialize("")
'It should work by returning the full size for framing on the screen. But always returns less.
fraContainer.SetLayout(0, 0, CLV.AsView.Width, CLV.AsView.Height)
'Tests done to manually stretch the height (This should be done automatically for some property I didn't find)
'fraContainer.SetLayout(0, 0, CLV.AsView.Width, 130%y) 'Android 4.4.4
'fraContainer.SetLayout(0, 0, CLV.AsView.Width, CLV.AsView.Height) '120%y 'Android 9
'fraContainer.SetLayout(0, 0, CLV.AsView.Width, CLV.AsView.Height + 15%y) 'Outros
fraContainer.LoadLayout("layout_configuracoes")
CLV.Add(fraContainer,1)
End If
End Sub
Attachments
Last edited: