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
Original issue reported on code.google.com by
dmura...@gmail.com
on 16 Feb 2011 at 9:17