[英]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.