Dima Svinarenko
Dima Svinarenko

Reputation: 3

MapView works incorrect

I have 2 Activities. In main Activity I start new Activity with MapView

Intent set = new Intent();
set.setClass(getApplicationContext(), OrderMap.class);
startActivity(set);

onCreate in MapView

@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.map);
    mapView = (MapView) findViewById(R.id.mymapview);
    mapView.setBuiltInZoomControls(true);
    }

But there is no Zoom Controls and it looks like View "freeze". I can't move map. What's wrong?

Upvotes: 0

Views: 746

Answers (1)

CommonsWare
CommonsWare

Reputation: 1006924

Add android:clickable="true" to your MapView widget in your layout.

Upvotes: 3

Related Questions