sách gpt4 ăn đã đi

java - Android:ScrollView 不使用键盘滚动

In lại Tác giả: IT Lão Cao 更新时间:2023-10-28 20:42:05 24 4
mua khóa gpt4 giày nike

我有一个带有一些 View 的布局,其中一个是 EditText。布局很容易适合一页,但是,当软键盘退出时,布局不会滚动。以下是我的布局回顾:


<>
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="phù hợp với cha mẹ"
android:layout_height="match_parent"
android:background="@drawable/background" >

<>
android:id="@+id/ScrollView1"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignParentTop="true" >


android:layout_width="phù hợp với cha mẹ"
android:layout_height="wrap_content"
android:orientation="dọc" >





















<>
android:layout_alignParentBottom="true" />


在我的 list 中我已经声明了属性:

android:windowSoftInputMode="adjustResize|stateHidden"

有谁知道它为什么不起作用以及如何确保它起作用?

Cảm ơn trước!

câu trả lời hay nhất

我遇到了同样的问题,我在 list 中检查了我的 Activity ,它不起作用的原因是因为我没有使用这个属性:

android:windowSoftInputMode="adjustResize"

现在效果很好,不需要做额外的 anchor 。

关于java - Android:ScrollView 不使用键盘滚动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15343355/

24 4 0
Chứng chỉ ICP Bắc Kinh số 000000
Hợp tác quảng cáo: 1813099741@qq.com 6ren.com
Xem sitemap của VNExpress