안드로이드 개발 질문/답변
(글 수 45,052)
<LinearLayout
android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="76px"
android:gravity="center_vertical"
android:background="@drawable/matching_title_bg"
>
<ImageView
android:layout_width="50px"
android:layout_height="50px"
android:layout_margin="10px"
android:background="@drawable/matching_list_icon_matching"
/>
</LinearLayout>
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="horizontal"
android:layout_weight="1"
>
<ListView
android:id="@+id/leftList"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
/>
<ListView
android:id="@+id/rightList"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
/>
</LinearLayout>
-------------------------------------------------------------------
| ImageView |
-------------------------------------------------------------------
| | |
| ListView | ListView |
| | |
| | |
-------------------------------------------------------------------
이런식으로 나오는데요..
저기에다가
<LinearLayout
android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="76px"
android:gravity="center_vertical"
android:background="@drawable/matching_title_bg"
>
<ImageView
android:layout_width="50px"
android:layout_height="50px"
android:layout_margin="10px"
android:background="@drawable/matching_list_icon_matching"
/>
</LinearLayout>
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_weight="1"
>
<ScrollView
layout_width="fill_parent"
layout_height="fill_parent"
>
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="horizontal"
>
<ListView
android:id="@+id/leftList"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
/>
<ListView
android:id="@+id/rightList"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
/>
</LinearLayout>
</ScrollView>
</LinearLayout>
-------------------------------------------------------------------
| ImageView |
-------------------------------------------------------------------
| | |
| ListView | ListView |
-------------------------------------------------------------------
| 빈공간 |
| |
-------------------------------------------------------------------
왜 이렇게 나올까요???
빈공간 없이 첫번째 처럼 나오고 ListView를 감싸고 있는 LinearLayout에 스크롤 주려고 하는데 잘 안되요 ㅡㅜ
부탁드립니다 답변 좀 주세요~~~~
android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="76px"
android:gravity="center_vertical"
android:background="@drawable/matching_title_bg"
>
<ImageView
android:layout_width="50px"
android:layout_height="50px"
android:layout_margin="10px"
android:background="@drawable/matching_list_icon_matching"
/>
</LinearLayout>
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="horizontal"
android:layout_weight="1"
>
<ListView
android:id="@+id/leftList"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
/>
<ListView
android:id="@+id/rightList"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
/>
</LinearLayout>
-------------------------------------------------------------------
| ImageView |
-------------------------------------------------------------------
| | |
| ListView | ListView |
| | |
| | |
-------------------------------------------------------------------
이런식으로 나오는데요..
저기에다가
<LinearLayout
android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="76px"
android:gravity="center_vertical"
android:background="@drawable/matching_title_bg"
>
<ImageView
android:layout_width="50px"
android:layout_height="50px"
android:layout_margin="10px"
android:background="@drawable/matching_list_icon_matching"
/>
</LinearLayout>
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_weight="1"
>
<ScrollView
layout_width="fill_parent"
layout_height="fill_parent"
>
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="horizontal"
>
<ListView
android:id="@+id/leftList"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
/>
<ListView
android:id="@+id/rightList"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
/>
</LinearLayout>
</ScrollView>
</LinearLayout>
-------------------------------------------------------------------
| ImageView |
-------------------------------------------------------------------
| | |
| ListView | ListView |
-------------------------------------------------------------------
| 빈공간 |
| |
-------------------------------------------------------------------
왜 이렇게 나올까요???
빈공간 없이 첫번째 처럼 나오고 ListView를 감싸고 있는 LinearLayout에 스크롤 주려고 하는데 잘 안되요 ㅡㅜ
부탁드립니다 답변 좀 주세요~~~~



