Scrollview没有在Fragment,Android中完全滚动

Scrollview没有在Fragment,Android中完全滚动,第1张

概述我是 Android的新手,我正在开发一款应用程序,但我有一个错误让我发疯.问题是它不会完全滚动,它会在屏幕上留下一个按钮,因此无法看到它. 这是xml代码: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"android:layout_width="match_parent"android:lay 我是 Android的新手,我正在开发一款应用程序,但我有一个错误让我发疯.问题是它不会完全滚动,它会在屏幕上留下一个按钮,因此无法看到它.

这是xml代码:

<linearLayout xmlns:androID="http://schemas.androID.com/apk/res/androID"androID:layout_wIDth="match_parent"androID:layout_height="match_parent"androID:background="#d3d3d3"androID:orIEntation="vertical"><ScrollVIEw xmlns:androID="http://schemas.androID.com/apk/res/androID"    androID:layout_wIDth="match_parent"    androID:layout_height="match_parent"    androID:fillVIEwport="true"    >        <linearLayout            androID:orIEntation="vertical"            androID:background="@drawable/bg_sugerir"            androID:layout_wIDth="match_parent"            androID:layout_height="wrap_content"            androID:layout_margintop="10dp"            androID:layout_marginleft="10dp"            androID:layout_marginRight="10dp"            androID:ID="@+ID/linearLayout"            >            <ImageVIEw                androID:layout_wIDth="wrap_content"                androID:layout_height="wrap_content"                androID:ID="@+ID/imageVIEw"                androID:src="@drawable/pd"                androID:layout_marginBottom="15dp"                />            <EditText                androID:layout_wIDth="match_parent"                androID:layout_height="wrap_content"                androID:ID="@+ID/editText"                androID:layout_marginBottom="15dp"                androID:hint="Nombre" />            <EditText                androID:layout_wIDth="match_parent"                androID:layout_height="wrap_content"                androID:inputType="phone"                androID:ems="10"                androID:ID="@+ID/editText2"                androID:layout_marginBottom="15dp"                androID:hint="Teléfono" />            <EditText                androID:layout_wIDth="match_parent"                androID:layout_height="wrap_content"                androID:ID="@+ID/editText4"                androID:layout_marginBottom="15dp"                androID:hint="Provincia" />            <EditText                androID:layout_wIDth="match_parent"                androID:layout_height="wrap_content"                androID:ID="@+ID/editText3"                androID:layout_marginBottom="15dp"                androID:hint="Descripción" />            <button                androID:layout_wIDth="match_parent"                androID:layout_height="wrap_content"                androID:text="Enviar"                androID:ID="@+ID/button" />        </linearLayout></ScrollVIEw></linearLayout>

它显示以下内容,但如图所示,按钮不存在:
notScrolling

希望有人能帮助我,谢谢

解决方法 尝试使用androID.support.v4.Widget.nestedScrollVIEw替换ScrollVIEw 总结

以上是内存溢出为你收集整理的Scrollview没有在Fragment,Android中完全滚动全部内容,希望文章能够帮你解决Scrollview没有在Fragment,Android中完全滚动所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/web/1130561.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-05-30
下一篇2022-05-30

发表评论

登录后才能评论

评论列表(0条)

    保存