2014-06-21 3 views
0

문서화 된 것으로 보이는 문제가 있습니다. 그러나 내 앱을 분류 할 수 없습니다. 전체 화면을 끌 필요가있는 곳을 읽었지만 내 프로젝트에는 표시되지 않습니다. 내 목표 : WebView를 조정하고 입력 상자가 키보드 아래에있을 때 나머지 WebView를 숨기지 않고 키보드를 허용하려고했습니다. 나는 노련한 안드로이드 개발자가 아니다. 어떤 입력을 사랑합니다. 매니페스트에서 내 매니페스트 키보드로 덮여있는 간단한 webView

<uses-sdk android:targetSdkVersion="8" android:minSdkVersion="5"/> 

    <uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS"/> 
    <uses-permission android:name="android.permission.RECORD_AUDIO"/> 
    <uses-permission android:name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS"/> 
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/> 
    <uses-permission android:name="android.permission.INTERNET"/> 

    <supports-screens android:largeScreens="true" /> 

    <application 
     android:icon="@drawable/icon" 
     android:label="@string/app_name" 
     android:allowBackup="true"> 

     <activity 
      android:name="XXXX" 
      android:label="@string/app_name" 
      android:theme="@android:style/Theme.Light" 
      android:screenOrientation="portrait" 
      android:windowSoftInputMode="adjustPan" 
      android:launchMode="singleTask"> 
      <intent-filter> 
       <action android:name="android.intent.action.MAIN" /> 
       <category android:name="android.intent.category.LAUNCHER" /> 
      </intent-filter> 

     </activity> 
     <activity android:name="XXXX"></activity> 

    </application> 
    </manifest> 

내 홈페이지 레이아웃

<?xml version="1.0" encoding="utf-8"?> 
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" 
    android:layout_width="fill_parent" 
    android:layout_height="fill_parent"> 

    <LinearLayout android:id="@+id/bottom_menu" 
     android:layout_width="fill_parent" android:layout_height="wrap_content" 
     android:orientation="vertical" android:layout_alignParentBottom="true" 
     android:background="#000000"> 
     <!-- menu bar --> 

     <include 
      android:layout_height="36dp" 
      layout="@layout/layout_footer_menu" /> 

    </LinearLayout> 

    <LinearLayout android:orientation="vertical" 
     android:layout_width="fill_parent" 
     android:layout_height="fill_parent" 
     android:layout_above="@id/bottom_menu" 
     android:id="@+id/activity_main" 
     android:paddingBottom="0sp" android:background="#000000"> 

     <WebView 
      android:id="@+id/webView" 
      android:layout_width="fill_parent" 
      android:layout_height="fill_parent" /> 

    </LinearLayout> 
</RelativeLayout> 

답변

0

, 당신의 활동에 대한 windowSoftInputMode 속성을 변경합니다. 이로부터 : 그들은 왼쪽 영역에 맞도록이

android:windowSoftInputMode="adjustResize" 

android:windowSoftInputMode="adjustPan" 

이 위젯의 ​​크기를 조정합니다. documentation을 참조하십시오.

+0

아무 것도하지 않는 것 같습니다. 내가 변경하고 내 장치에서 테스트 및 webView 크기를 조정하지 않았다. 바닥 글 레이아웃이 있습니다. 그것이 문제의 원인이 될 수 있습니까? –

관련 문제