안녕하십니까.
앱 화면에서 EditText를 선택하면 소프트 키보드가 나타나는데,
키보드가 나타나면 퍼센트로 설정해 둔 view들의 크기(높이)가 조금씩 변경됩니다.
UI가 변경되지 않게 하기 위하여 manifest에서 아래 옵션을 설정했더니
android:windowSoftInputMode="adjustPan"
스크롤이 작동하지 않는 문제가 발생 합니다.
즉 제가 구현하고 싶은 모습은,
소프트 키보드가 나타나도 UI의 크기에는 변화가 없고 스크롤을 사용할 수 있어야 합니다.
방법이 없을까요?
여기 안드로이드펍이나 stackoverflow를 아무리 뒤져봐도 방법을 찾을 수 없어서 질문을 남기게 되었습니다.
아래는 해당 UI의 xml 코드 일부 입니다.
<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/sv_login"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fillViewport="true">
<LinearLayout
android:id="@+id/ly_login"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginTop="10dp">
<LinearLayout
android:id="@+id/ly_login_nbread"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight=".51">
.....
<LinearLayout
android:id="@+id/ly_login_id_password"
android:orientation="vertical"
android:background="#F6A623"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight=".45">
....