Other [quiz] Find the bug

Discussion in 'Android Questions' started by Erel, Jan 12, 2017.

  1. Erel

    Erel Administrator Staff Member Licensed User

  2. Cableguy

    Cableguy Expert Licensed 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.
     
  3. corwin42

    corwin42 Expert Licensed 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.
     
    DonManfred, AndOrNot and Erel like this.
  4. AndOrNot

    AndOrNot Well-Known Member Licensed User

    MapFragment1 has not left anchor. So i don't understand how is possible the name of view is located in center. Think this is the bug
     
  5. Erel

    Erel Administrator Staff Member Licensed User

    That's the correct answer.

    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.
     
  6. Cableguy

    Cableguy Expert Licensed User

    Since the script is not provided, I would say it's not part of the problem
     
  7. Erel

    Erel Administrator Staff Member Licensed User

    The map is anchored to the right. It is not hidden by any view.
     
  8. Erel

    Erel Administrator Staff Member Licensed User

    You can see the anchor indicators - the small white circles. There is no script here.
     
    Cableguy likes this.
  9. eurojam

    eurojam Well-Known Member Licensed User

    if you turn the device from landscape to portrait, the map will disapear...
     
  10. Erel

    Erel Administrator Staff Member Licensed User

  11. moster67

    moster67 Expert Licensed 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....
     
    inakigarm and Erel like this.
  12. klaus

    klaus Expert Licensed User

    B4A Beginner's Guide page 209 :).
     
  13. Erel

    Erel Administrator Staff Member Licensed User

    You get 10 extra points :)
     
  14. Erel

    Erel Administrator Staff Member Licensed User

  15. moster67

    moster67 Expert Licensed User

    Wow, nice Erel. Did you use the FlyHome function?
    BTW: Love the music in the video? Who is it?
     
  16. Erel

    Erel Administrator Staff Member Licensed User

    It is a "hot spot" mission:
    Code:
    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, 305'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.
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice