안드로이드 개발 질문/답변
(글 수 45,052)
MapView의 크기를 변경하고 싶은데 바뀌질 않네요
현재 사용하고 있는 안드로이드 버전은 1.6버전입니다.
레이아웃상에 왼쪽에 맵뷰,오른쪽에 버튼을 그리고 싶은데
맵뷰가 버튼을 무시하고 혼자 화면을 다 차지 해버립니다.
xml 코드는 밑에 처럼 처리 했구요
<?xml version="1.0" encoding="utf-8"?> <LinearLayout android:id="@+id/LinearLayout01" android:layout_width="wrap_content" android:layout_height="wrap_content" xmlns:android="http://schemas.android.com/apk/res/android"> <com.google.android.maps.MapView android:id="@+id/map" android:layout_width="wrap_content" android:layout_height="wrap_content" android:enabled="true" android:clickable="true" android:apiKey="키값" android:layout_gravity="left"/> <Button android:text="@+id/Button01" android:id="@+id/Button01" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="right" /> </LinearLayout>
그래서 생각한게 맵뷰의 크기를 줄여보자 였는데 어떻게 줄여야되는지 나와있는 곳이 없어서 도움을 청합니다.
getHeight 같은 메소드도 있던데 사용하니 바로 에러 나서 크기도 얻어오지 못하겠고..
고수님들의 답변 기다리고 있습니다. ㅜㅜ
공지사항을 다 읽었음