Android Question MapView in Designer

stephankuba

Member
Licensed User
Longtime User
Hi to all,

I do this to put a Mapview on Layout.

B4X:
Dim MapView1 As MapView
MapView1.Initialize("")
Activity.AddView(MapView1, 1%x, 62%y, 99%x, 28%y)

but I want to do it in the designer (abstract designer) but there is only a Webview.
I want to do this because I want to make diffrent screen size and rotation possible, if I put
the MapView like above on the Layout it is always 62%y but this is not were it should be on a tablet pc.

Maybe someone knows how to do this.
 

stephankuba

Member
Licensed User
Longtime User
Thank your for your help,
I will do this, so simple I don't know why I don't had this idea by my self.

I put the webview in a panel in designer and the webview with 100%x and 100%y it will have the size of the panel.

:):):)
 
Upvote 0
Top