相关疑难解决方法(0)

更改Google Maps API的"我的位置"按钮的位置

我正在使用谷歌地图Android API v2,我需要一种方法来获取"我的位置"按钮的位置.

我得到这样的"我的位置"按钮:

GooglePlayServicesUtil.isGooglePlayServicesAvailable(getApplicationContext());
final GoogleMap map = ((SupportMapFragment) getSupportFragmentManager()
        .findFragmentById(R.id.map)).getMap();

// This gets the button
map.setMyLocationEnabled(true);
Run Code Online (Sandbox Code Playgroud)

java android google-maps-android-api-2 android-maps-v2

83
推荐指数
9
解决办法
7万
查看次数