안드로이드 개발 질문/답변
(글 수 45,052)
액티비티의 레이아웃 파일이 아래와 같이 되어 있습니다.
<?xml version="1.0" encoding="utf-8"?>
<AbsoluteLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<ImageView
android:id="@+id/videoViewEnding"
android:layout_width="550px"
android:layout_height="250px"
android:id="@+id/videoViewEnding"
android:layout_width="550px"
android:layout_height="250px"
android:layout_x="203px"
android:layout_y="439px"
android:visibility="invisible"
android:background="@anim/ending"/>
android:layout_y="439px"
android:visibility="invisible"
android:background="@anim/ending"/>
</AbsoluteLayout>
ImageView 는 FrameAnimation 으로 처리할려고 합니다.
디바이스의 화면 회전시 onConfigurationChanged 함수에서 저 ImageView 의 x , y 값을 임의로 값을 바꿀려고 합니다.
어떤 함수를 이용해야 되는지 알려 주시면 감사하겠습니다.




layout-land 폴더 하나 생성하신 다음에
동일한 xml 파일명으로 만드셔서 원하시는 값 넣으면 됩니다.
가급적 px 보단 dp 를 활요하세요
저대로 내놓으면 기기 몇개 깔아보면 욕밖에 안 들어요...