Android   发布时间:2022-04-28  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了Scrollview没有在Fragment,Android中完全滚动大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
我是 Android的新手,我正在开发一款应用程序,但我有一个错误让我发疯.问题是它不会完全滚动,它会在屏幕上留下一个按钮,因此无法看到它.

这是xml代码:@H_262_3@

<LinearLayout xmlns:android="http://scheR_169_11845@as.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://scheR_169_11845@as.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@H_262_3@

希望有人能帮助我,谢谢@H_262_3@

解决方法

尝试使用android.support.v4.widget.nestedScrollView替换ScrollView

大佬总结

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

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

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。