2017-06-19 4 views
0

アンドロイドでレイアウトを調整する際に問題があります。キーボードが画面に表示されているときに半分のウェブビューがキーボードの下に隠れています 私のコードは、これまでにマニフェストファイルのソフトキーボードが画面に表示されたら、アンドロイドのレイアウトを調整する際に問題が発生します

<?xml version="1.0" encoding="utf-8"?> 
<RelativeLayout 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:background="@drawable/backgroundmap" 
    tools:context="com.example.adeel.abc.newmessage"> 

      <WebView 
      android:layout_width="match_parent" 
      android:layout_height="wrap_content" 
      android:id="@+id/messengerWeb"> 
      </WebView> 
</RelativeLayout> 

とコードである

<activity android:name=".newmessage" 
     android:theme="@style/Theme.AppCompat.Light.NoActionBar" 
     android:windowSoftInputMode="adjustPan"> 
    </activity> 

である私はstackoverflowの上の多くのソリューションを試みたが、非それらを持つことができる作業と のWebView自体を調整doesntのしていますは親切に私のコードを作る際に よろしく

答えて

0

変更アクティビティのwindowSoftInputMode属性たくさんよりよい おかげで私を助けてください:

android:windowSoftInputMode="adjustResize" 
+1

それは感謝をたくさん働いていました –

関連する問題