0

I have a activity in which there are 15 editText box. My problem is that when the soft keyboard comes up the editText present at bottom hides. I tried

android:windowSoftInputMode="adjustResize"

in Manifest file. But this did not worked.

I want edit Text boxes present at bottom to come up when they are clicked.

4

1 回答 1

0

在您的 xml 布局中,使 ScrollView 成为根父级,默认情况下它们会上升。

要强制 ScrollView 滚动到底部(如果默认情况下不滚动),您可以实现以下内容:

scrollView().post(new Runnable() {
    @Override
    public void run() {
        scrollView().fullScroll(ScrollView.FOCUS_DOWN);
    }
});
于 2012-07-10T09:21:26.517 回答