티스토리 뷰
Stack Overflow에 자주 검색, 등록되는 문제들과 제가 개발 중 찾아 본 문제들 중에서 나중에도 찾아 볼 것 같은 문제들을 정리하고 있습니다.
Stack Overflow에서 가장 먼저 확인하게 되는 가장 높은 점수를 받은 Solution과 현 시점에 도움이 될 수 있는 가장 최근에 업데이트(최소 점수 확보)된 Solution을 각각 정리하였습니다.
아래 word cloud를 통해 이번 포스팅의 주요 키워드를 미리 확인하세요.
Android: How do I prevent the soft keyboard from pushing my view up?
Android: 소프트 키보드가 뷰를 위로 밀지 않도록 하려면 어떻게 해야 합니까?
문제 내용
I have a vertical sliding drawer at the bottom of my app. When the soft keyboard opens, it pushes the tab for the drawer up, so it sits atop the keyboard. I actually want it to remain at the bottom of the screen, becoming hidden when the keyboard is shown.
저는 제 앱 하단에 수직 슬라이딩 드러어가 있습니다. 소프트 키보드(SIP)가 열리면, 그것은 드로어 탭을 위로 밀어서 키보드 위에 올려놓습니다. 저는 드로어가 실제로 화면 하단에 남아 키보드가 표시되면 숨겨지길 원합니다.
Anyone else run into this issue? Know how to fix it?
이 문제에 부딪힌 사람이 또 있나요? 어떻게 고치는지 알고 계신가요?
높은 점수를 받은 Solution
// 답변 확인시 높은 점수를 받은 Solution은 질문에 대한 답이 아닌 것 같습니다. 가장 최근 달린 Solution을 참고 바랍니다.
You can simply switch your Activity's windowSoftInputMode
flag to adjustPan
in your AndroidMainfest.xml
file inside your activity tag.
AndroidMainfest.xml 파일에서 액티비티 태그 중 windowSoftInputMode flag를 adjustPan으로 간단히 전환할 수 있습니다.
Check the official documentation for more info.
자세한 내용은 공식 문서를 참조하십시오.
<activity
...
android:windowSoftInputMode="adjustPan">
</activity>
가장 최근 달린 Solution
I have solved my issue by adding
저는 아래 코드를 추가하여 문제를 해결했습니다.
android:windowSoftInputMode="adjustNothing"
In manifest file add.
매니페스트 파일 추가.
and making the Recyclerviews constraint isScrollContainer to false .
그리고 Recyclerviews 제약 조건을 만드는 것은 isScrollContainer를 false로 만드는 것입니다.
android:isScrollContainer="false"
출처 : https://stackoverflow.com/questions/4207880/android-how-do-i-prevent-the-soft-keyboard-from-pushing-my-view-up
'개발 > 안드로이드' 카테고리의 다른 글
'Error retrieving parent for item' 오류 수정하기 (0) | 2022.12.18 |
---|---|
캡처한 이미지 디바이스 방향에 맞게 회전시키기 (0) | 2022.12.18 |
웹뷰에서 html 콘텐츠 가져오기 (0) | 2022.12.17 |
당겨서 새로고침 구현하기 (0) | 2022.12.17 |
한 액티비티에서 다른 액티비티로 데이터(객체) 전달하기 (0) | 2022.12.17 |