Use a FrameLayout with an ImageView and a TextView as children. Use a 
9-patch as the background of the TextView.

On Friday, August 3, 2012 10:26:36 AM UTC-4, Luiz Fernando Rodrigues wrote:

> Thanks for your answer. 
> That's actually what I'm doing.
>
> The problem with this approach is that once I render the component as a 
> popover it becomes part of the bitmap. It becomes painful to handle events 
> since I have to recognize the area in the image where the component was 
> rendered. Also I have to deal with pan and zoom, what changes the component 
> coordinates. I could handle all that using matrix transformations but the 
> code is becoming messy,
>
> I was looking for another approach, similar  to the MapsAPI, (where I can 
> include ItemizedOverlay items), but now using to the maps API. Something 
> that allows work with my popover as a component.
>
>
> 2012/7/31 ashok chakravarthy <[email protected]>
>
>> subclass the ImageView and draw overlay on onDraw and handle the touch 
>> events on onTouch
>>
>>  On Wed, Jul 25, 2012 at 12:30 AM, Luiz Fernando Rodrigues <
>> [email protected]> wrote:
>>
>>>  Hi, 
>>>
>>> In my application I need to show a custom popover over an ImageView. 
>>> This tutorial (
>>> http://www.techjini.com/blog/2010/11/23/creating-a-customized-popover-for-mapview/)
>>>  
>>> teaches how to do it over an MapView. 
>>> I made an adaptation drawing the popover component in the ImageView 
>>> since the ItemizedOverlay belongs to the maps API.
>>>
>>> So far so good, but now I need to capture events in the popover and I'm 
>>> questioning myself if thats the right way implement an popover over an 
>>> ImageView.
>>> Could anyone point me to a right API to build this feature?
>>>
>>> Thanks a lot,
>>> Luiz
>>>
>>>
>>> -- 
>>> You received this message because you are subscribed to the Google
>>> Groups "Android Developers" group.
>>> To post to this group, send email to [email protected]
>>> To unsubscribe from this group, send email to
>>> [email protected]
>>> For more options, visit this group at
>>> http://groups.google.com/group/android-developers?hl=en
>>
>>
>> -- 
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to [email protected]
>> To unsubscribe from this group, send email to
>> [email protected]
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>
>
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to