2012-12-04 39 views

回答

78

事實證明,如果您在文檔中查找正確的位置,那會很簡單。

GoogleMap中有一個UiSettings類,允許啓用和禁用手勢。

SupportMapFragment mapFragment = (SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.maps_fragment); 
    GoogleMap map = mapFragment.getMap(); 
    map.getUiSettings().setRotateGesturesEnabled(false); 
+2

你應該接受你的答案 - 或刪除的問題,因爲它在演示,應用程序甚至展示瞭如何打開所有這些功能和關閉...... – Ridcully

+0

我也試圖找到禁用變焦按鈕和我在getUiSettings()中找到它。setZoomControlsEnabled(false) – Amt87

+0

完美的解決方案:) –