Other [quiz] Find the bug

Erel

B4X founder
Staff member
Licensed User
Longtime User
SS-2017-01-12_11.52.15.png
 

Cableguy

Expert
Licensed User
Longtime User
I never worked with Google maps but I would say that "mapfragment1" would clash with the class methods...
Other than that, the mapfragment1 (panel?) occupies the complete activity, then another panel is on top of it with 2 labels that also occupies completely the parent panel...
A weird layout, but... Designer wise, ok I would say.
 
Upvote 0

corwin42

Expert
Licensed User
Longtime User
Setting lblText and Label1 both to VERTICAL_ANCHOR=BOTH does not work for the desired behavior. You have to use designer script to make them fit to each other.
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
Setting lblText and Label1 both to VERTICAL_ANCHOR=BOTH does not work for the desired behavior
That's the correct answer.

You have to use designer script to make them fit to each other.
It depends on the requirements (the desired behavior was not defined).

One solution is to anchor Label1 to the bottom which means that only lblText will grow vertically and they will never overlap.
 
Upvote 0

Cableguy

Expert
Licensed User
Longtime User
Setting lblText and Label1 both to VERTICAL_ANCHOR=BOTH does not work for the desired behavior. You have to use designer script to make them fit to each other.
Since the script is not provided, I would say it's not part of the problem
 
Upvote 0

moster67

Expert
Licensed User
Longtime User
I think this is the screen for a demo app for Erel's new drone using the SDK :)
In the screen you will see the camera from the drone together with a google map showing positions. Other goodies shown in the label could be geo-data, battery-situation etc....
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
I think this is the screen for a demo app for Erel's new drone using the SDK :)
In the screen you will see the camera from the drone together with a google map showing positions. Other goodies shown in the label could be geo-data, battery-situation etc....
You get 10 extra points :)
 
Upvote 0

moster67

Expert
Licensed User
Longtime User
Wow, nice Erel. Did you use the FlyHome function?
BTW: Love the music in the video? Who is it?
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
It is a "hot spot" mission:
B4X:
Sub MapFragment1_Click (Point As LatLng)
   If missionManager.IsInitialized And missionManager.Connected Then
     If Msgbox2("Start hotspot mission?", "", "Yes", "Cancel", "No", Null) = DialogResponse.POSITIVE Then
       Dim hsm As DJIHotSpotMission
       hsm.Initialize(Point.Latitude, Point.Longitude, 30, 5) 'Altitude = 30m, Radius = 5m
       missionManager.PrepareMission(hsm)
     End If
   End If
End Sub

The music title is Kick It Back. I'm not sure who plays it. It is part of Camtasia Studio.
 
Upvote 0
Top