0
我有这个垂直ScrollView
与标题,子标题,摘要文本,按钮和页脚。Android:添加填充底部/顶部后滚动视图不滚动
一切工作,直到我加入<ScrollView>
:
android:paddingTop="xxxx"
android:paddingBottom="xxx"
android:clipToPadding="false"
在此之后,页面不会连我可以看到页脚中被切断滚动。任何人都可以帮助我吗?谢谢!!!!
<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:fillViewport="true"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scrollbars="none"
android:paddingTop="xxxx"
android:paddingBottom="xxx"
android:clipToPadding="false">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:id="@+id/header"
android:text="header"
android:gravity="center_horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
<TextView
android:id="@+id/subheader"
android:layout_below="@+id/header"
android:letterSpacing="-0.04"
android:layout_marginTop="xxx"
android:layout_height="wrap_content"/>
<Button
android:id="@+id/button"
android:layout_below="@id/button"
android:layout_marginTop="xxx"
android:layout_width="xxx"
android:layout_height="xxx"/>
<TextView
android:id="@+id/summary"
android:layout_below="@+id/button"
android:layout_marginTop="xxxx"
android:layout_height="wrap_content"/>
<TextView
android:id="@+id/footer"
android:layout_below="@+id/summary"
android:layout_marginTop="xxxx"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
</RelativeLayout>
我只能张贴图片是这样的。摘要字符串可能很长,所以我们需要滚动整个页面。
能否请您发表您的预期输出的图像? – FAT
@FerdousAhamed对不起,我不能张贴截图,但我张贴了一张图片来解释。 – Zip
你还没有关闭scrollview标签o.O – Rico