2017-04-26 49 views
0

我有一個佈局,正在全屏幕高度,幷包含2的EditText上的EditText softinputkeyboard點擊時,會出現覆蓋機器人進行佈局滾動

我用
安卓我的其他觀點的休息:windowSoftInputMode =「adjustResize」 但它只是收縮我的觀點。我想要的是視圖應該可以滾動時softinputkeyboard出現。

聽到我的XML

 <?xml version="1.0" encoding="utf-8"?> 
    <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" 
     xmlns:tools="http://schemas.android.com/tools" 
     xmlns:app="http://schemas.android.com/apk/res-auto" 
     android:id="@+id/activity_sign_in" 
     android:layout_width="match_parent" 
     android:layout_height="match_parent" 
     > 
    <ScrollView 
     android:layout_width="match_parent" 
     android:layout_height="match_parent"> 



     <LinearLayout 
      android:layout_width="match_parent" 
      android:layout_height="match_parent" 
      android:weightSum="10" 
      android:orientation="vertical" 
      android:background="#fff" 
      android:layout_alignParentTop="true" 
      android:layout_alignParentLeft="true" 
      android:layout_alignParentStart="true"> 
      <RelativeLayout 
       android:layout_width="wrap_content" 
       android:layout_height="0dp" 
       android:layout_weight="4"> 

    </LinearLayout> 
</ScrollView> 

</RelativeLayout> 

,如果添加滾動視圖直接觀看變得更大。或刪除所有空白空間 獨立於我給佈局的重量。

+0

哪裏是滾動型? – Rajasekhar

回答

0

查找解決

清單文件:

android:windowSoftInputMode="stateAlwaysHidden|adjustResize" 
0

嘗試android:windowSoftInputMode="adjustPan"