I’m try to do pinch zoom sample.but itz not working.I think the issue is activity class can’t identify the items in xml file.
ERROR Description mapview cannot be resolved or is not a field.
My code as below
package pinchZoom.com;
import android.R;
import android.os.Bundle;
import com.google.android.maps.MapActivity;
import com.nikkoaiello.mobile.android.PinchMapView;
public class PinchZoomActivity extends MapActivity
{
PinchMapView view;
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.mapview);
view = (PinchMapView) findViewById(R.id.Map);
}
protected boolean isRouteDisplayed() {
return false;
}
//////////////////////////xml file///////////////////////////////////////////////
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:isScrollContainer="true"
>
<com.nikkoaiello.mobile.android.PinchMapView
android:id="@+id/Map"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:clickable="true"
android:apiKey="***MY API KEY***"
/>
</RelativeLayout>
Could someone please tell me the way to fix this? If you have any worked through examples, that would be a real help!
Please try this.