2017-09-13 13 views
0

를 사용하여 보여주는 스크롤 화면. 다음 볼 첫째 Edittext, SoftInput KeyboardEditTextButton 숨겨진을 클릭합니다. 나는 android:windowSoftInputMode="adjustResize|stateVisible" 안드로이드 : 키보드 사 <code>EditText</code> 한 <code>Button</code>와 내가 <code>android.support.constraint.ConstraintLayout</code>을 사용하고 ConstraintLayout

android:windowSoftInputMode="adjustPan"

  • android:windowSoftInputMode="adjustResize"
    1. ManiFeast.xml에 노력하지만 일을했다. 키보드가 표시 될 때 알 수있는 방법이 없습니다 그 내 Manifest.xml Activity 태그

      <application 
          . 
          . 
          . 
          <activity android:name=".MainActivity" 
             android:windowSoftInputMode="adjustResize|stateVisible" 
             android:screenOrientation="portrait"> 
      
             <intent-filter> 
              <action android:name="android.intent.action.MAIN" /> 
      
              <category android:name="android.intent.category.LAUNCHER" /> 
             </intent-filter> 
            </activity> 
           </application> 
      
  • 답변

    0

    ScrollView

    를 사용하지 않을 경우 어떤 제안이 화면 스크롤을합니다. 그래서 당신이 원하는 것은 불가능합니다. 당신이 할 수있는 일은 ScrollView에 모든 것을 집어 넣어 항상 스크롤 할 수 있도록하는 것입니다. 키보드가 올라간 후에도 여전히 스크롤 할 수 있습니다.