4

setMyLocationEnabled当用户按下启用时出现的此按钮时,我找不到通知的方法。

4

1 回答 1

1

Google Maps Android API v2 目前不支持此事件。

请参阅My Tracks应用程序中的代码,了解如何创建解决方法

https://code.google.com/p/mytracks/source/browse/MyTracks/src/com/google/android/apps/mytracks/fragments/MyTracksMapFragment.java

  /*
   * My Tracks needs to handle the onClick event when the my location button
   * is clicked. Currently, the API doesn't allow handling onClick event,
   * thus hiding the default my location button and providing our own.
   */
于 2013-03-01T18:50:08.497 回答