Virtual keyboard hides screen data elements

I have a problem with the virtual keyboard.

This soft keyboard covers data fields - and cannot see what is happening.

I want to use this soft keyboard, and at the same time it should not become a problem for using data fields.

So how can I manage data fields in such cases?

+3
source share
2 answers

You can also consider setting the next attribute in your activity in the Android manifest to further define the behavior.

From here (http://developer.android.com/guide/topics/manifest/activity-element.html):

android:windowSoftInputMode=["stateUnspecified",
                                   "stateUnchanged", "stateHidden",
                                   "stateAlwaysHidden", "stateVisible",
                                   "stateAlwaysVisible", "adjustUnspecified",
                                   "adjustResize", "adjustPan"]

, adjustResize , ScrollViews, .

+1

, ScrollView. , . , ScrollView .

<Scrollview android:layout_width="fill_parent"
 android:layout_height="wrap_content">
<LinearLayout android:layout_width="fill_parent"
 android:layout_height="wrap_content">
<!-- Your content -->
</LinearLayout>
</ScrollView>
+2

Source: https://habr.com/ru/post/1776402/


All Articles