我开发了一个用户表单,其中有不同的小工具。我设置了滚动选项,但无法生成滚动条,因此无法向上滚动到最后一个选项。以下是代码。有人能指导我解决这个问题吗?
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:scrollbars="vertical"
android:scrollbarAlwaysDrawVerticalTrack="true"
android:scrollbarStyle="outsideInset" android:isScrollContainer="true"
android:overScrollMode="always"
>
..............
</LinearLayout>发布于 2012-07-05 21:48:37
您必须将LinearLayout包装在ScrollView中。并删除LinearLayout中的滚动参数,它们不起作用。
注意:一个ScrollView只能有一个嵌套子元素!所以它应该是你的主要布局。
https://stackoverflow.com/questions/11345668
复制相似问题