안드로이드 개발 질문/답변
(글 수 40,700)
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:scaleType="centerInside"
>
<com.google.android.maps.MapView
android:id="@+id/photo_map_view"
android:layout_width="fill_parent"
android:layout_height="0px"
android:clickable="true"
android:apiKey="0vZ43f32f32C2DYJkjr32r32tS2u0VMhnDz-A"
/>
</RelativeLayout>
위에처럼 MapView의 높이를 0px로 해서 화면에서 안보이게 한다음에
지도 버튼을 만들어서 높이를 다시 fill_parent로 변경해서 보여줄려고 하는데 높이가 변경이 안되네요..
어떻게하면 코드에서 높이를 변경해서 보여주게 할수 있을까요?
<meta http-equiv="content-type" content="text/html; charset=utf-8"><meta http-equiv="content-type" content="text/html; charset=utf-8">
흠... 실제로 테스트는 안해봤지만, 아마
안보이게 하는건
MapView mv = getViewById(R.id.photo_map_view);
mv.Height = 0px;
뭐 이정도 아닐까요 -_-;;
보이게 하는건 저기서 0px를 원래 크기 만큼으로 설정하구요.