B4J Tutorial [ABMaterial]: How to fit ABMGoogleMap to RC with SetFixedHeightFromBottom?

Mashiane

Expert
Licensed User
Ola...

I have created an RC(2,1) and page.Cell(2,1).SetFixedHeightFromBottom(20, False)

The height of my ABMGoogleMap is 500 (int) however I want it to fit the whole RC, taking the whole page area.

Fortunately, there is a .SetStyleProperty call in ABM. So...

B4X:
ABM.SetStyleProperty(page,"gmaplocs","height","100%")
After page.Refresh does the magic on my connect page.

My page grid is...

B4X:
' create the page grid
    page.AddRowsM(1,False,0,20,"").AddCellsOSMPV(1, 0, 0, 0, 12, 12, 12, 0, 0, 0, 0, ABM.VISIBILITY_ALL, "")
    page.AddRowsM(1,False,0,20,"").AddCellsOSMPV(1, 0, 0, 0, 12, 12, 12, 0, 0, 20, 20, ABM.VISIBILITY_ALL, "")
    page.BuildGrid 'IMPORTANT once you loaded the complete grid AND before you start adding components
fullscreen.png
 
Top