안드로이드 개발 질문/답변
(글 수 45,052)
화면에 이렇게 나오도록 만들었고요 xml 파일은 아래와 같은데요
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<ImageSwitcher android:id="@+id/switcher"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_weight="2"
/>
<Gallery android:id="@+id/gallery"
android:background="#55000000"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_weight="8"
android:spacing="0dp"
android:gravity="center_vertical"
/>
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<ImageSwitcher android:id="@+id/switcher"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_weight="2"
/>
<Gallery android:id="@+id/gallery"
android:background="#55000000"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_weight="8"
android:spacing="0dp"
android:gravity="center_vertical"
/>
</LinearLayout>
위 화면은 이미지스위처고 아래 화면은 갤러리인데요 원래 이미지스위처 weight 값이 8이고 갤러리 weight 값이 2이여야지 맞는 거 아닌가요? 반대로 값을 넣으니깐 맞게 나오네요 ㅡㅡ 제가 잘 못 알고 있는 건가요???



