I use the following drawable to show a different state for the focused
item but I found no documentation about drawables described by XML
items:

<?xml version="1.0" encoding="utf-8"?>
<selector
  xmlns:android="http://schemas.android.com/apk/res/android";>
  <item
    android:drawable="@drawable/bubble_normal" />
  <item
    android:state_focused="true"
    android:drawable="@drawable/bubble_focused" />
</selector>

I only see the bubble_normal even if the overlay item is focused.

On 11 sep, 15:17, Guillaume Perrot <[EMAIL PROTECTED]> wrote:
> I also manually draw titles but I have problem with ordering them
> because when calling super(), all bubbles are drawn at once, then (or
> before) I can draw info window. What I want to do is draw a bubble
> (super.draw) then an info window then another bubble then another info
> window etc....
> It would be great to have a draw method in OverlayItem class to
> override...
>
> On 4 sep, 17:35, "Chris Chiappone" <[EMAIL PROTECTED]> wrote:
>
> > I had to manually draw those inside the onTap method.
>
> > On Thu, Sep 4, 2008 at 3:51 AM, Guillaume Perrot
>
> > <[EMAIL PROTECTED]> wrote:
>
> > > OK overlay items are drawn with the setBounds trick.
> > > But overlay title or snippet is never drawn even if we tap on it. How
> > > to use these overlay items fields ?
>
> > > On Sep 3, 12:09 pm, Peter Stevenson <[EMAIL PROTECTED]> wrote:
> > >> Chris Chiappone wrote:
> > >> > Marcel,
>
> > >> > Thanks for that seems to work as you described.  The only thing that
> > >> > doesn't seem right is the way the map draws the markers shadow.  Any
> > >> > idea on how to correct that.
>
> > >> > Thanks.
>
> > >> > On Mon, Sep 1, 2008 at 2:03 PM, marcel-182 <[EMAIL PROTECTED]> wrote:
>
> > >> >> Hi everyone,
>
> > >> >> I finally got this thing working. Just set the bounds of themarkerto
> > >> >> be drawn and that's it!
>
> > >> >> Sample:
> > >> >> Drawable defaultMarker =
> > >> >> getResources().getDrawable(R.drawable.map_marker_red);
> > >> >> defaultMarker.setBounds(0, 0, defaultMarker.getIntrinsicWidth(),
> > >> >> defaultMarker.getIntrinsicHeight());
> > >> >> mMapView.getOverlays().add(new DemoOverlay(defaultMarker)); //
> > >> >> DemoOverlay is of course an ItemizedOverlay
>
> > >> >> I made a small demo showing one OverlayItem and how to handle tap-
> > >> >> events. If someone is interested:
> > >> >>http://www.marcelp.info/2008/09/01/android-itemizedoverlay-demo/
>
> > >> >> Regards, Marcel
>
> > >> try changing
>
> > >> private GeoPoint mRandomPoint = new GeoPoint(5309691, 8851933);
> > >> to some thing like this
> > >> currentPoint = new GeoPoint((int) (-43.2973 * 1000000), (int) (172.5929
> > >> * 1000000));
> > >> the map is draw much faster
>
> > >> peter
>
> > --
> > ~chris
--~--~---------~--~----~------------~-------~--~----~
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