当键盘进入Android系统时,EditText超出了窗口范围

当键盘进入Android系统时,EditText超出了窗口范围,android,android-layout,layout,android-edittext,android-softkeyboard,Android,Android Layout,Layout,Android Edittext,Android Softkeyboard,在my manifest.xml中,我已将其设置为当前的活动 <activity android:name=".StockAdjustment" android:theme="@style/CustomActionBarTheme" android:label="@string/Metrix" android:windowSoftInputMode="adjustResize" > </activity&g

在my manifest.xml中,我已将其设置为当前的
活动

<activity
        android:name=".StockAdjustment"
        android:theme="@style/CustomActionBarTheme"
        android:label="@string/Metrix"
        android:windowSoftInputMode="adjustResize" >
    </activity>

设置android:WindowsOfInputMode=“stateVisible | adjustPan | adjustResize”


另外,如果您的版面中有一个
ScrollView
,请将
android:isScrollContainer=“false”
添加到您的
ScrollView

中,并尝试将
android:fitsystemwindows=“true”
设置为父版面元素

<ScrollView
    style="@style/ScrollViewBase.Normal.Vertical"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:fitsSystemWindows="true"
    tools:isScrollContainer="false">

通过更改layout.xml的结构,我终于实现了这一目标。 我将布局xml文件更改为

<LinearLayout style="@style/LinearBase.Normal.Vertical" >

            <ScrollView
                style="@style/ScrollViewBase.Normal.Vertical"
                android:layout_weight="1"
                android:fitsSystemWindows="true"
                tools:isScrollContainer="false">
                <LinearLayout style="@style/LinearBase.Normal.Vertical">
                    <LinearLayout
                        android:id="@+id/table_layout"
                        style="@style/LinearBase.Normal.Vertical"
                        android:focusable="true"
                        android:focusableInTouchMode="true">

                        <TextView
                            style="@style/TextViewBase.Title"
                            android:tag="SCREEN_LABEL"></TextView>

                        <TextView
                            style="@style/TextViewBase.Emphasis"
                            android:tag="SCREEN_TIP"></TextView>

                    </LinearLayout>

                    <ListView
                        android:id="@+id/serialList"
                        android:layout_width="match_parent"
                        android:layout_height="match_parent" />

                </LinearLayout>

            </ScrollView>

            <include layout="@layout/stock_adjustment_menu_bar" />

</LinearLayout>

以前,我的
滚动视图
正在缩小/平移,然后
列表视图
将上升,我看不到
滚动视图
中的内容。更改布局结构后,我的全部内容(文本视图、按代码添加的编辑文本和列表视图)都在一个
ScrollView
中。因此,收缩/平移是通过考虑
滚动视图中的全部内容来实现的


当触摸
列表视图时,请确保禁用父视图的滚动功能

您可以共享您的布局吗?@EnamulHaque我添加了我的布局图像。你能检查一下吗?我也加了这个。但一切都没有改变。仍然过高更新的答案。android:isScrollContainer=“false”这应该添加到清单中?
android:isScrollContainer=“false”
应该作为参数添加到布局文件中的
滚动视图中,在我的活动布局中,我已经设置了这个工具:isScrollContainer=false。我不知道为什么它仍然是一样的。没有任何变化:(
<LinearLayout style="@style/LinearBase.Normal.Vertical" >

            <ScrollView
                style="@style/ScrollViewBase.Normal.Vertical"
                android:layout_weight="1"
                android:fitsSystemWindows="true"
                tools:isScrollContainer="false">
                <LinearLayout style="@style/LinearBase.Normal.Vertical">
                    <LinearLayout
                        android:id="@+id/table_layout"
                        style="@style/LinearBase.Normal.Vertical"
                        android:focusable="true"
                        android:focusableInTouchMode="true">

                        <TextView
                            style="@style/TextViewBase.Title"
                            android:tag="SCREEN_LABEL"></TextView>

                        <TextView
                            style="@style/TextViewBase.Emphasis"
                            android:tag="SCREEN_TIP"></TextView>

                    </LinearLayout>

                    <ListView
                        android:id="@+id/serialList"
                        android:layout_width="match_parent"
                        android:layout_height="match_parent" />

                </LinearLayout>

            </ScrollView>

            <include layout="@layout/stock_adjustment_menu_bar" />

</LinearLayout>