anasrp08 / osmdroid

Automatically exported from code.google.com/p/osmdroid
0 stars 3 forks source link

Overlay OnDraw canvas leak ? #161

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. Define any class that extends OpenStreetMapViewOverlay
Under the OnDraw Method do the following
get final Rect canvasBounds= canvas.getClipBounds();

canvas.drawText("TEST" , canvasBounds.Right-textWidth-5, 
canvasBounds.bottom-5-fontSpacing, somePaint);

2. Layout -
<RelativeLayout fill parent, fill parent>
  <MapView fill parent, fill parent/>
  <RelativeLayout fill parent, fill parent>
     <button background = img1 height=fill parent width=wrap content/>
  </RelativeLayout>
</RelativeLayout>

3. In the map activity, When the button is clicked, have it alternate 
background images between img1 and img 2 using OnClickListener

4. Clicking the button causes the overlay(s)(text) to be drawn behind the button

What is the expected output? What do you see instead?

Steps above i had the button height fill the parent, So when you click the 
button the "TEST" text will be easily visible on the bottom part of the screen

What version of the product are you using? On what operating system?

Please provide any additional information below.
 Make sure to align the button to the left and the overlay text drawing to the right. So when the button is click, you will see the canvas drawing overlap.

Original issue reported on code.google.com by dmura...@gmail.com on 16 Feb 2011 at 9:17

GoogleCodeExporter commented 9 years ago
This issue is quite old and not particularly clear. I suspect it is no longer 
valid and can be closed.

Original comment by kurtzm...@gmail.com on 25 Jan 2013 at 8:07