안녕하세요~
이번에 앱 개발하면서 지역정보를 추가하는 부분을 구성하던중 문제가 생겨 3일째 헤매는 1인입니다. ^^
간단히 말씀드리자면
서울시, 광주시, 대구시... 등 우리나라 시, 도를 첫버내 레이어에 담고, 그 다음 서울시 클릭하며 해당 구가 노출되고. 그 구를 누르면 동이 노출되는
형태를 만드려고 하는데요..
이런저런 생각하다가 처음 1단계(서울시, 광주시등..) 는 LinearLayout 으로 구성 두번째부터는 ExpandableListView 로 구성하려고
아래와같이 레이아웃을 구성하였습니다.
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
<ScrollView
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="#444444" >
<FrameLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
<LinearLayout
android:id="@+id/li_area_1"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background="@drawable/title_area_bg"
android:gravity="left|center_vertical"
android:orientation="horizontal" >
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/ic_area_1" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingLeft="10px"
android:text="서울특별시"
android:textColor="#000000"
android:textSize="15sp" />
</LinearLayout>
<LinearLayout
android:id="@+id/li_areaChild_1"
android:layout_width="fill_parent"
android:layout_height="match_parent"
android:gravity="left|center_vertical" >
<ExpandableListView
android:id="@+id/expandAreaList_1"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
</ExpandableListView>
</LinearLayout>
문제는 위와 같이 구성하였을때 서울 특별시 탭을 누르게 되면 해당 ExpandableListView가 나와야 하는데.. 전체를 스크롤로 감사고 있으니
그 영역만큼 나오지 않더라고요.. 이중 스크롤이 생기면서 ExpandableListView의 스크롤은 되지도 않는 ㅠㅠ
제가 문의하고 싶은건 ExpandableListView의 탭을 누른만큼 하단의 레이어들도 밑으로 자동으로 내려가는 ExpandableListView에선 스크롤이 생기지 않도록 구성하고 싶은데.. 너무 말에 두서가 없는듯.. 그래도 대충 이해하셨을거라 믿고
이렇게 여쭤봅니다~
그럼 꼭 좋은 충고 부탁드립니다.