EmotionalMan EmotionalMan - 3 months ago 17
Android Question

android soft keyboard cover the EditText focused

1.put edittext to bottom of screen,set EditText's gravity to right, inputtype to something like number.
2.click the edittext, soft keyboard willl show and edittext will be push up.
3.press hardware back to hide keyboard.
4.click edittext again, keyboard will show but edittext is covered by keyboard.

Did someone get this issue too?

Answer

put all components inside the scrollview.

<RootView>
   <ScrollView>
     <childview>
      .
      .
      <your other views>
      .
      .
     </childview>
   </ScrollView>
</RootView>

then add android:windowSoftInputMode="stateHidden|adjustResize" in your manifest to the corresponding activity.