【问题标题】:List/GridView scrolling manually forever after last rowList/GridView 在最后一行之后永远手动滚动
【发布时间】:2013-12-01 17:34:40
【问题描述】:

我在 android 应用程序中有列表/网格视图。 当我“滑动”手指(从底部到顶部)时,滚动效果很好,但在最后一行中,如果我继续滑动,滚动将继续滚动。

所以,行随着滚动而上升直到消失。

当我将手指从屏幕上移开时,行看起来像向下滚动一样“向下落”。

如何“限制”滚动以在最后一行停止滚动? (类似于 LinearLayout 的滚动)

我的列表查看代码:

    <ListView
        android:id="@+id/skills_listView"
        android:layout_width="match_parent"
        android:layout_height="0px"
        android:layout_weight="1"
        android:gravity="center"
        android:listSelector="#00000000"
        android:scrollingCache="false"
        android:smoothScrollbar="true" >
    </ListView>

【问题讨论】:

    标签: android listview gridview scroll


    【解决方案1】:

    设置android:layout_height="wrap_content"

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2016-04-17
      • 1970-01-01
      • 1970-01-01
      • 2010-12-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多