안녕하세요.

 

스크롤뷰로 감싸면 리스트뷰가 스크롤이 안됩니다.
스크롤뷰를 빼자니, 에디트텍스트 터치시 키보드가 올라오면서 에디트텍스트가 안보입니다.......

리스트뷰에 어떤속성을 주거나, 키보드에 어떤설정을 하면 해결이 가능한가요?

좋은하루 되시구요, 답변 부탁 드리겠습니다.

감사합니다.

 

 

 

 

 

 

아래의 그림은 스크롤뷰를 감싸지 않았습니다.

스크롤뷰가 없으면 위의 에디트텍스트 클릭시 키보드가 올라오면서 에디트텍스트가 가려지네요....

 

1.gif

 

 

 

 

아래의 그림은 스크롤뷰를 감싸았구요......

스크롤뷰로 감싸면 키보드가 올라올때 에디트텍스트가 보입니다.

그런데 리스트뷰 스크롤이 안됩니다. T,.T

 

2.gif

 

 

 

소스입니다.


            <ScrollView
                android:layout_width="fill_parent"
                android:layout_height="wrap_content" >

                <LinearLayout
                    android:layout_width="fill_parent"
                    android:layout_height="wrap_content"
                    android:gravity="center"
                    android:orientation="vertical" >

                    <LinearLayout
                        android:layout_width="fill_parent"
                        android:layout_height="wrap_content"
                        android:layout_marginBottom="15dp"
                        android:layout_marginTop="15dp"
                        android:gravity="center"
                        android:orientation="horizontal" >

                        <EditText
                            android:id="@+id/main_editSearch"
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:background="@drawable/edit_search"
                            android:hint="@string/main_search_hint"
                            android:maxLines="1"
                            android:paddingLeft="10dp"
                            android:textColor="@color/color_gray_search_hint"
                            android:textSize="@dimen/dimens_brand_content"
                            android:textStyle="bold" />

                        <ImageButton
                            android:id="@+id/main_btnSearch"
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:layout_marginLeft="5dp"
                            android:background="@null"
                            android:onClick="mOnClick"
                            android:src="@drawable/btn_search" />
                    </LinearLayout>

                    <LinearLayout
                        android:layout_width="fill_parent"
                        android:layout_height="200dp"
                        android:background="@drawable/main_search_right_bg"
                        android:orientation="horizontal" >

                        <ListView
                            android:id="@+id/main_searchListSi"
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:layout_weight="6"
                            android:dividerHeight="0px" />

                        <ListView
                            android:id="@+id/main_searchListGugun"
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:layout_weight="4"
                            android:dividerHeight="0px" />
                    </LinearLayout>

                    <ImageButton
                        android:id="@+id/main_btnLocSearch"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_marginTop="15dp"
                        android:background="@null"
                        android:onClick="mOnClick"
                        android:src="@drawable/btn_main_search_ok" />
                </LinearLayout>
            </ScrollView>