Re: [android-developers] Problem with map overlay

2010-07-07 Thread TreKing
On Wed, Jul 7, 2010 at 8:54 AM, RS.Giridaran  wrote:

> i want it to be like the same in directions popups in google maps
> application. please advise me.
>

Don't use a PopupWindow, use a regular view that get's added to the MapView
as a child.

-
TreKing - Chicago transit tracking app for Android-powered devices
http://sites.google.com/site/rezmobileapps/treking

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

[android-developers] Problem with map overlay

2010-07-07 Thread RS.Giridaran
Hi All,

i want to create map oveylays with information window(when user tap
overlay) which is clickable and stick with overlay when user panning
the map. i am added the map in a tab view, created overlays using
itamizedoverlays and information window using Popupwindow, when user
panning the map i am updating the popup window positing using
popup.update() method. The problem here is when the user panning with
popup window on map towards up, the pop up window showing above the
tab bar. i dont know how to fix this.


here i have given sample code for popup window display and on draw
method.
CODE: SELECT ALL
LayoutInflater inflater = LayoutInflater.from(mContext);
 View mView = inflater.inflate(R.layout.map_popup, null);
 mView.setOnClickListener(clickListener);
 mPopupWindow = new PopupWindow(mView,
LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT, false);
 
mPopupWindow.setAnimationStyle(android.R.style.Animation_Dialog);
 mPopupWindow.showAsDropDown(mView, 20, 200);


On draw method
CODE: SELECT ALL
mPopupWindow.update(center.x , center.y , -1, -1);


i want it to be like the same in directions popups in google maps
application. please advise me.

Thanks in advance

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