How can I make bounce effect to listview as in ios

荒凉一梦 提交于 2019-12-13 08:46:07

问题


I need to make bounce effect to my listview in android.ie when I scroll down listview has to scroll beyond its starting point and the come back to its original position Please help..


回答1:


as you not posted your code(I think it is also not required as per your question). So I am giving a Custom Widget

It is custom widget of listview (not that much complicated, just animation is added into it)
use the library for your application. and also from that in PullToRefreshActivity there is
mListItems.addFirst("Added after refresh..."); statement just remove it if you want.. (don't worry about activity name or class name
here target is you got your result) i.e bounce effect to Listview
If you satisfy..then Please accept the answer..




回答2:


By the looks of things in the ScrollView API you should be able to override the onOverScrolled() method if you create a custom view that extends the ScrollView class.



来源:https://stackoverflow.com/questions/14747525/how-can-i-make-bounce-effect-to-listview-as-in-ios

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!