마스터Q&A 안드로이드는 안드로이드 개발자들의 질문과 답변을 위한 지식 커뮤니티 사이트입니다. 안드로이드펍에서 운영하고 있습니다. [사용법, 운영진]

안드로이드 웹뷰 키보드 가림현상

0 추천

다른 앱들보면 키보드가 올라오게되면 앱자체의 영역이 작아지고 키보드 영역이 새로 생기는거같던데

저는 그냥 웹뷰를 덮어버립니다... 

 

android:windowSoftInputMode 는 전부다 써봤는데 아무 변화가 없습니다.

아래 레이아웃에서 혹시 무언가 잘못된건가요??

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical"
    tools:context=".MainActivity" >
 
    <WebView
        android:id="@+id/webviewid"
        android:layout_width="match_parent"
        android:layout_height="fill_parent"
        android:layout_weight="0.62" />
 
</LinearLayout>
webview 님이 2014년 12월 22일 질문

1개의 답변

0 추천
webview 밖에 scrollview 넣고

getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_PAN);
 

이렇게 해보셔요
nicehee (73,100 포인트) 님이 2014년 12월 22일 답변
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical"
    tools:context=".MainActivity" >

    <ScrollView
        android:layout_width="match_parent"
        android:layout_height="fill_parent">
      <WebView
          android:id="@+id/webviewid"
          android:layout_width="match_parent"
          android:layout_height="fill_parent"/>
    
    </ScrollView>

</LinearLayout>

이렇게 변경하고
getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_PAN);을 webview 불러오기전,불러온후 둘다 넣어봤지만 아무 변화가 없습니다 ㅠㅠ..
...