xml 하나가 있는데 LinearLayout이구요
그 안에 RelativeLayout을 하나 만들어서 View에 지도를 띄운겁니다.
<RelativeLayout
android:id="@+id/map_view"
android:layout_width="match_parent"
android:layout_height="400dp">
<ImageView
android:id="@+id/imageView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:src="@drawable/marker" />
</RelativeLayout>
ImageView가 지도 위에 올라왔으면 해서
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_daum_map);
ImageView img = (ImageView) findViewById(R.id.imageView);
RelativeLayout layout = (RelativeLayout) findViewById(R.id.map_view);
layout.bringChildToFront(img);
img.bringToFront();
}
이런 식으로 했는데도 안올라오네요.
뭐가 문제인지 잘 모르겠습니다.