title: How to create an information bubble on a map (not google api)
body: <p>In my android application I have a custom view that functions like a map. When the user touches a particular location, I would like to be able to display more information in a sort of information bubble. This is very similar to how the google maps api works, but I do not want to use their api. </p>
  
  <p>So far I have tried drawing a rounded rectangle directly to the canvas and drawing text over top at the specified location. But this has considerable drawbacks: </p>
  
  <p>1) I don't know how to calculate how big the rectangle should be relative to the length and size of the text. </p>
  
  <p>2) Drawing a rectangle leaves no room for the power of views (with built in onTouch events, and room to easily customize the view)</p>
  
  <p>I have also tried using a view (Button) to display the information but have had no success. As far as I know, I cannot specify the coordinates for where the view should display (since the information bubble needs to move according to where the map is scrolled).</p>
  
  <p>In summary, I need the best of both methods where an image should easily resize according to the amount of text displayed, and the information bubble should be able to move around the screen according to where the map is scrolled.</p>
  
  <p>Does anyone have any suggestions on what the best approach would be to create an information bubble like this without using the google maps api?</p>