[android-developers] Show Popup in MapLocationOverlay.onTap
Im trying to display a popup in a MapView. I m doing this in
myLocationOverlay.onTap() method. I got the initial popup to display
correctly. I have a button in the popup to expand the popup by making
some hidden view visible and changing the height of the popup like
this:
mapPopup.switchModeBtn.setOnClickListener(new
View.OnClickListener()
{
public void onClick (View v) {
if(mapPopup.isInCompactMode) { // then switch to expanded
mode...
mapPopup.firstRowSwitchModeBtn.setImageResource(R.drawable.cq_down_arrow_btnx);
mapPopup.secondRowTextView.setVisibility(View.VISIBLE);
MapView.LayoutParams params = new
MapView.LayoutParams(MapPopup.Width, 350, popupWindowPosition,
MapView.LayoutParams.BOTTOM_CENTER);
mapPopup.container.setLayoutParams(params);
}
else {
mapPopup.firstRowSwitchModeBtn.setImageResource(R.drawable.cq_right_arrow_btnx);
mapPopup.secondRowTextView.setVisibility(View.GONE);
MapView.LayoutParams params = new
MapView.LayoutParams(MapPopup.Width, 70, popupWindowPosition,
MapView.LayoutParams.BOTTOM_CENTER);
mapPopup.container.setLayoutParams(params);
}
mapPopup.container.invalidate();
}
});
but the height of the popup doesn't seems to change. Am I missing
something here?
I would really appreciate your help!
Thanks
Santoash
--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home