안녕하세요.
camera preview 와 나침반 센서를 이용해서 이미지를 그릴려고 하는데 방법이 잘 생각이 안나네요.
방향 좀 제시해주실 분을 기다립니다 ^^;
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/root_frame_layout"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/camera_preview"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
</LinearLayout>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/bitmap_imageview"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
</LinearLayout>
</FrameLayout>
프레임 레이아웃으로 화면을 겹쳐서 카메라 미리보기 화면을 띄우고.
bitmap_imageview는 투명하게 해서 화면을 터치하면 그 위에 이미지를 그리게 해 놨는데,
카메라 방향이 바뀌면 지금까지 그린 이미지도 같이 이동되게 하고 싶어요.
구글 스카이 맵이랑 비슷하게 동작하는 원리 인데.. 여기저기 검색해도 답을 못 찾고 있네요.