google map v2에서 window사이즈 조절하는 부분이 굉장히 거시기하다
커스터마이징 자체를 map에서는 안하고 기본으로 쓰는게 젤 편하다. ㅜㅠ
그마나 관련 설명이 젤 잘나와있다. (아래 주소)
최소한의 윈도우의 디폴트 사이즈가 정해져있는 듯하다. (내부코드를 볼시간이 없어서 패쓰)
레이아웃을 커스터 마이징 했던 레이아웃도 아래 참고적으로 추가해놨다. 이미지는 사정상 올릴 수 없어서리..
http://wptrafficanalyzer.in/blog/customizing-infowindow-contents-in-google-map-android-api-v2-using-infowindowadapter/
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:background="@drawable/speechbubble_bg_normal"
>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical"
android:layout_marginRight="20dp">
<TextView
android:id="@+id/name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="#333333"
android:textSize="18sp" />
<TextView
android:id="@+id/subname"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="#777777"
android:textSize="16sp" />
</LinearLayout>
<FrameLayout
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_weight="1"
>
<ImageView
android:id="@+id/icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="right|center_vertical"
android:src="@drawable/speechbubble_arrow" />
</FrameLayout>
</LinearLayout>
'프로그래밍 > 안드로이드' 카테고리의 다른 글
android studio 패키지 네임 변경 (0) | 2015.02.08 |
---|---|
안드로이드 웨어 sdk 발표 (0) | 2014.03.20 |
android hint text size 조절하기 (0) | 2014.03.18 |
위젯 에서 리스트뷰 사용하기 (0) | 2014.03.18 |
viewpager mapFragment 삽입시 깜빡이는 현상 제거 (0) | 2014.01.14 |