[android-developers] Re: long click on MapView

2008-08-31 Thread adamrocker
Hi. Do you set a long clickable option to true through View#setLongClickable(...) ? 2008/9/1 Joa [EMAIL PROTECTED]: I am trying to capture the fact that a long click has occurred in a MapView. Not sure if I am doing this right, because OnLongClickListener.onLongClick() in the following

[android-developers] Re: MapView and Zoom Control in 0.9 SDK

2008-08-25 Thread adamrocker
Hi. I'm so sorry for my code to confuse all of you. This is the shortest sample. /* BEGIN --*/ /*-- ZoomControlMapSample.java ---*/ public class ZoomControlMapSample extends MapActivity { private static final String API_KEY = mapapikey;

[android-developers] Re: MapView and Zoom Control in 0.9 SDK

2008-08-25 Thread adamrocker
: onInterceptTouchEvent(MotionEvent ev) has to return true in order to be able to scroll while the ZoomControls are being displayed. But I'm not sure if that triggers another bad behaviour :-). On 25 Aug., 17:36, adamrocker [EMAIL PROTECTED] wrote: Hi. I'm so sorry for my code to confuse all of you

[android-developers] Re: MapView and Zoom Control in 0.9 SDK

2008-08-24 Thread adamrocker
Hi. You can move the ZoomControls to center bottom of the window using the following code // Zoom View View zoomView = mMapView.getZoomControls(); zoomView.setLayoutParams( new ViewGroup.LayoutParams ( ViewGroup.LayoutParams.FILL_PARENT, ViewGroup.LayoutParams.FILL_PARENT ) );