2017-05-05 18 views
0

キーボードが表示されたときにMy EditTextが完全に表示されず、フォーカスまで表示されましたが、EditTextを表示する可能性があります。キーボードが表示されたときにAndroid EditTextが完全に表示されない

enter image description here

mainfest

<activity 
android:name=".activityname" 
android:screenOrientation="portrait" 
android:windowSoftInputMode="adjustResize" 
android:theme="@android:style/Theme.Holo.Light.NoActionBar"/> 

でレイアウト

<ScrollView 
     android:id="@+id/scrollvew_direct" 
     android:isScrollContainer="true" 
     android:layout_height="wrap_content"> 
    <EditText 
     android:id="@+id/edt_employers_name" 
      android:layout_width="match_parent" 
      android:layout_height="40dp" 
      android:layout_marginTop="20dp" 
      android:layout_centerHorizontal="true" 
      android:inputType="text" 
      android:maxLength="100" 
      android:hint="@string/dir_deposit_6" 
      android:textSize="@dimen/edittextsize_sub" 
      android:gravity="center" 
      android:layout_gravity="center" 
      android:textColor="@color/main_header" 
      android:textColorHint="@color/hint_color_light" 
      android:background="@drawable/edittext_style"/> 
    </ScrollView> 

適切な解決策のために私を導いてください。マニフェストのあなたのアクティビティタグで

+0

トライアンドロイド働いている:私はアンドロイドを使用している場合windowSoftInputModeは= "adjustPan" –

+0

を:windowSoftInputMode = "adjustPan"、キーボードオーバーレイ編集テキスト(すなわち、。編集のテキストは私がスクロールするutill上に動いていなかった) –

+0

は完全なXMLファイルを投稿できますか? – Lingeshwaran

答えて

1

あなたにアクティビティタグこのプロパティを追加し、

android:windowSoftInputMode="adjustResize" 

このプロパティを追加編集: EDITTEXTの高さがありますバックグラウンドドロウブルと完全に一致していない

ma

android:layout_height="match_parent" or 
android:layout_height="wrap_content" 

と私のためにそれを確認するなどのKEのEditTextそれは

+0

android:windowSoftInputMode = "adjustPan"を使用すると、キーボードが編集テキストをオーバーレイします(つまり、編集テキストがスクロールしなくなりました)。 –

+0

ありがとうございました。またadjustPanをadjustResizeに編集してください –

1

、マニフェストの

android:windowSoftInputMode="stateAlwaysHidden|adjustResize"

+0

それは動作していませんでした。他の解決方法がありますか? –