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

레이아웃은 간단한데 버그인지 위치가 이상합니다.

0 추천
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@drawable/bg_intro_800x1280" >
 
    <ImageView
        android:id="@+id/intro_image"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_centerHorizontal="true"
        android:layout_centerVertical="true"
        android:src="@drawable/intro_logo" />
 
    <TextView
        android:id="@+id/textView1"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_below="@id/intro_image"
        android:text="copyright ⓒ ZETTAMEDIA CO., LTD. All rights reserved."
        android:textColor="#666"
        android:textSize="8dip"
        android:textStyle="bold"
        android:typeface="sans" />
 
</RelativeLayout>
 
이미지뷰를 레이아웃의 수직수평 가운데 배치하고
 
그 아래 텍스트뷰를 배치하기 위해
 
  android:layout_below="@id/intro_image"
 
속성을 주었는데도 자꾸 아래로 안붙고 위로 붙네요;;;
 
버그인가요;
갸아악 (21,260 포인트) 님이 2013년 5월 31일 질문

1개의 답변

0 추천
해보니 전 아래로 잘붙는데요 ㅎ

단순히 쓰실거면 리니어 레이아웃으로 하세요

버티컬로 하시면 자연적으로 아래로
  (11,920 포인트) 님이 2013년 5월 31일 답변
...