ListView with a (half- and or) hidable header

旧城冷巷雨未停 提交于 2019-12-03 20:19:01

I think that you meant to do some "synchronized scrolling".

There's a great post explaining how they've done in on Google Play:

http://www.pushing-pixels.org/2011/07/18/android-tips-and-tricks-synchronized-scrolling.html

Hope that's what you were looking for..

I believe that is a separate component, not related to ListView in any way.

Just create the header, let it be a RelativeLayout, or LinearLayout, and fill the rest of the area with the ListView set to fill_parent. Then, when you'll scroll the ListView, the "header" will stay sticky (as it is a separate component), and the list will scroll down.

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