我正在使用谷歌地图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)