S stephankuba Member Licensed User Longtime User Aug 22, 2013 #1 Hi to all, I do this to put a Mapview on Layout. Code: Copy 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.
Hi to all, I do this to put a Mapview on Layout. Code: Copy 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.
Erel B4X founder Staff member Licensed User Longtime User Aug 23, 2013 #2 Unless the library author will make this view a "custom view" then you will not be able to directly add it with the designer. However you can add a Panel instead and in your code add the MapView to the panel: Code: Copy MapViewPanel.AddView(MapView1, 0, 0, MapViewPanel.Width, MapViewPanel.Height) Upvote 0
Unless the library author will make this view a "custom view" then you will not be able to directly add it with the designer. However you can add a Panel instead and in your code add the MapView to the panel: Code: Copy MapViewPanel.AddView(MapView1, 0, 0, MapViewPanel.Width, MapViewPanel.Height)
S stephankuba Member Licensed User Longtime User Aug 29, 2013 #3 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
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.