-1
내 레이아웃에 여러 개의 맵을 표시하고 싶습니다. 나는 목록보기 항목에서 목록보기를 내 조각에서listview에서 mapviews를 추가하는 방법은 무엇입니까? 안드로이드
내 GET보기 방법에 내가 할 어댑터 파일에서는지도보기
<com.google.android.gms.maps.MapView
android:id="@+id/map_view"
android:layout_width="fill_parent"
android:layout_height="fill_parent" />
있습니다
holder.mapView.getMapAsync(new OnMapReadyCallback() {
@Override
public void onMapReady(GoogleMap googleMap) {
LatLng sydney = new LatLng(-33.852, 151.211);
googleMap.addMarker(new MarkerOptions().position(sydney)
.title("Marker in Sydney"));
googleMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));
holder.mapView.onResume();
}
});
그러나 아무것도 나타나지 않습니다.
Google지도 API 키를 만들고 내 매니페스트에 다음을 추가했습니다.
compile 'com.google.android.gms:play-services-maps:10.2.1'
가 더지도를 보여주는이없는 이유를 알고 수행
<meta-data
android:name="com.google.android.geo.API_KEY"
android:value="my api key, not restricted"/>
와 나는 철판 파일이 종속성을 추가 한?
모든 로그 캣 오류 메시지를이 추가? – apmartin1991
@ apmartin1991 오류를 표시하지 않습니다 –