마스터Q&A 안드로이드는 안드로이드 개발자들의 질문과 답변을 위한 지식 커뮤니티 사이트입니다. 안드로이드펍에서 운영하고 있습니다. [사용법, 운영진]

레이아웃 imageview 겹치기

0 추천
<AbsoluteLayout
               android:layout_width="80px"
               android:layout_height="512px"
               android:id="@+id/al1">
              
               <ImageView
                   android:id="@+id/iv1"
                   android:layout_width="76px"
                   android:layout_height="512px"
                   android:src="@drawable/img1"/>
              
               <ImageView
                android:id="@+id/iv2"
                android:layout_x="18px"
                android:layout_y="54px"
                android:layout_width="37px"
                android:layout_height="188px"
                android:src="@drawable/img2"/>
              
               <ImageView
                android:id="@+id/iiv3"
                android:layout_x="18px"
                android:layout_y="306px"
                android:layout_width="37px"
                android:layout_height="188px"
                android:src="@drawable/img3"/>
              
           </AbsoluteLayout>

 

이미지뷰를 겹쳐서 표현을할려고합니다.

xml에서 그래픽으로보면 겹쳐져서 나오는데 실행하면 오류가뜨는데 방법이 있을까요?
익명사용자 님이 2014년 8월 18일 질문

1개의 답변

+1 추천
AbsoluteLayout 은 API level3 부터 deprecate 되었습니다.

http://developer.android.com/reference/android/widget/AbsoluteLayout.html

우선 AbsoulteLayout 을 쓰지말고 RelativeLayout 을 사용해보도록 하세요.
Gioskhan (12,060 포인트) 님이 2014년 8월 18일 답변
...