change default marker to new and set default when close mapview
<p>i have developing one app in which i have implemented mapview with custom balloon functionality. in which i can get data from webservices and display overlay based on that perticular data. so when i have tap it , it appear balloon with data.now everything is gone good but here raise issue. i need to implement functionality in which when i <code>tap</code> the overlay item on a map its default marker will change to &amp; replace with another png. and when i close the opened balloon it will automatically getback on default market icon. so for that i have just implement code... in <code>CustomItemizedOverlay</code> which exteds  <strong>extends</strong> <code>BalloonItemizedOverlay&lt;CustomOverlayItem&gt;</code></p>

<p><strong>code :</strong> </p>

<pre><code>@Override
    public boolean onTap(int index) {
        // TODO Auto-generated method stub
        Drawable unFocusedMarker = context.getResources().getDrawable(R.drawable.newwhalesimage);
        Drawable focusedMarker = context.getResources().getDrawable(R.drawable.north);


        OverlayItem item = customOverlayItemArrayList.get(index);
        focusedMarker.setBounds(focusedMarker.getIntrinsicWidth() /- 2, 
                    focusedMarker.getIntrinsicHeight() / -2,
                    focusedMarker.getIntrinsicWidth() / 2, 
                    focusedMarker.getIntrinsicHeight() / 2);
            item.setMarker(focusedMarker);


            Log.i(TAG, "-- 1--lastFocusedIndex"+lastFocusedIndex);
        if (lastFocusedIndex!=-1)
        {
            Log.i(TAG, "-- 2 --lastFocusedIndex"+lastFocusedIndex);
            OverlayItem unFocusedItem = customOverlayItemArrayList.get(lastFocusedIndex);
            unFocusedMarker.setBounds(unFocusedMarker.getIntrinsicWidth() /- 2, 
                    unFocusedMarker.getIntrinsicHeight() / -2,
                    unFocusedMarker.getIntrinsicWidth() / 2, 
                    unFocusedMarker.getIntrinsicHeight() / 2);
            unFocusedItem.setMarker(unFocusedMarker);
        }   

        lastFocusedIndex = index;

        return super.onTap(index);

    }
</code></pre>

<p>by this i can achieve my goal when i tap ballon it will change png and when i tap another overlay it will change that overlay png. but here is problem with <code>close</code>
i have implement close balloon on  <code>BalloonItemizedOverlay</code> </p>

<p><strong>Code ::</strong> </p>

<pre><code>if (balloonView == null) {
            balloonView = createBalloonOverlayView();
            clickRegion = (View) balloonView.findViewById(R.id.balloon_inner_layout);
            clickRegion.setOnTouchListener(createBalloonTouchListener());
            closeRegion = (View) balloonView.findViewById(R.id.balloon_close);
            if (closeRegion != null) {
                if (!showClose) {
                    closeRegion.setVisibility(View.GONE);
                } else {
                    closeRegion.setOnClickListener(new OnClickListener() {

                        public void onClick(View v) {
                            // TODO Auto-generated method stub

                            hideBalloon();



                        }
                    });
                }
            }
</code></pre>

<p>here it will hide balloon. but the problem is i need overlay item for set &amp; change png so in this class there are no overlayitem array so question is how can i implement this functionality?please help me out</p>
