제가 맵띄우는걸 하고 있는데요
처음에는 맵과 텍스트뷰따로해서 맵터치할때마다 현재위치를 찍어줬었는데
맵안에 텍스트뷰를 놔둬서 현재위치를 보고 싶은데요
맵은 RelativeLayout으로 보여지구요
<RelativeLayout
android:id="@+id/map_view_add"
android:layout_width="match_parent"
android:layout_height="284dp"
android:background="#dddddd"
>
<TextView
android:id="@+id/info_map_address"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="주소 : "
android:textSize="20dip"
android:layout_gravity="center"
android:singleLine="true"
/>
</RelativeLayout>
일단 여기서 텍스트뷰가 처음에 안보이는데 피피티 할때보면 맨앞으로 보이기 이런 설정이 있나요?
그리고 맵을 터치하면 주소가 보이거나 입력되어있어야하는데
10-01 02:53:57.383: E/AndroidRuntime(1046): java.lang.ClassCastException: android.widget.ScrollView cannot be cast to android.widget.TextView
10-01 02:53:57.383: E/AndroidRuntime(1046): at com.lll.Info_Add.onMapViewSingleTapped(Info_Add.java:128)
라고 오류가 나옵니다 ㅠㅠ