views:

248

answers:

0

I worked through http://developer.android.com/resources/tutorials/views/hello-mapview.html and now I want to show a balloon with information, when a marker is clicked. Just like here.

(This part of my question seems to be answered by Commonsware. So, dont recognize it.) Honestly, I dont know what that guy is doing in his answer. He is using constructs I only now from Javascript and I dont know what he accesses from where and maybe he is dynamicly creating a linearLayout or smth.

Maybe u can provide me a good example, which just extends the google example? I mean, that is really basic map behaviour.

I dont get the point, why I have to code so much for it. Like, I dont want to care about...

  • the position of the balloon (I just want to assign a geopoint)
  • the layout of a basic balloon (Later on I might want to implement a xml based layout)
  • the number of shown balloons (only display one at a time)
  • the open/close behaviour of the balloon (close, when an other bollon is tabbed)

Update

Here is the same problem. The user fhucho solved it that way: His solution is to have the popup inside the root RelativeLayout above the map and change its position when user scrolls the map. It's not ideal, because the popup is not moving at the same speed as the map - it's lagging a bit behind the map, when I move the map. Do I have to go the same way? Really?