简体   繁体   English

当到达底部时将列表视图项拖动到中间的方式

[英]Way to drag listview items till middle when reached bottom

Maybe a really vague description but basically exactly what I want. 也许是一个模糊的描述,但基本上正是我想要的。

When you reach the bottom of a listview the list stops with scrolling, you can't go further. 当您到达列表视图的底部时,列表将随着滚动而停止,您将无法进行进一步的操作。 What I want is that you can scroll further and that the bottom items scroll till the middle of the screen. 我想要的是您可以进一步滚动,而最下面的项目滚动到屏幕中间。 I tryed several things, but can't manage to find a way to do this. 我尝试了几件事,但无法设法做到这一点。

Its just pull for refresh , but then from the bottom of, and it should not go back to refresh, but just stay there. 它只是拉刷新,然后从底部开始,它不应该返回刷新,而应该停留在那里。

Hope my description helps, can't make it more clear, all help is really valued. 希望我的描述能对您有所帮助,让您不能说得更清楚,所有帮助都非常有价值。

Option 1: Add "blank" items at the end of the list. 选项1:在列表末尾添加“空白”项目。

Option 2: on the listview's XML add the following: 选项2:在列表视图的XML上添加以下内容:

android:paddingBottom="80dp"
android:clipToPadding="false"

Option 3: programatically: 选项3:以编程方式:

listView.setPadding(0, 0, 0, 80);
listView.setClipToPadding(false);

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 检测ListView何时到达底部 - onScroll()或onScrollStateChanged()? - Detect when ListView has reached the bottom - onScroll() or onScrollStateChanged()? 从列表视图的顶部到底部拖动项目时如何提高速度? - How to increase speed when drag item from top to bottom of listview? 有没有一种简单的方法可以在ListView中拖动项目以更改其顺序? - Is there an easy way to drag items around in a ListView to change their order? 对象动画只工作到中间,而不是滚动的底部 - Object animator works only till the middle, not the bottom of scroll Listview项目扩展到屏幕的整个宽度 - Listview items spreading till full width of screen 从上到下滚动时如何自动停止对项目的列表视图取消选择? - how to stop listview deselection on items automatically when scrolling top to bottom? 当位于底部时,Android自动在列表视图中加载更多项目 - Android automatically load more items in listview when at the bottom 如何检测滚动视图何时到达底部,以便可以向其中加载更多项目? - How can I detect when a scrollview has reached the bottom so that I can load more items into it? 当子列表视图以颤动结束时,有什么方法可以滚动父列表视图? - Is there any way to scroll parent listview when the child listview reached end in flutter? 在android中的listview中拖放项目? - drag and drop of items in listview in android?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM