第二章图片的内容跑到上面去了
自定义tab,一个界面上下滑动,切换到另一个tab页后,列表内容也会滑动?Custom tab, one interface slides up and down, after switching to another tab page, the list content also slides?
自定义tab,一个界面上下滑动,切换到另一个tab页后,列表内容也会滑动?第二章图片的内容跑到上面去了
In Chapter 2, the content of the picture went up
回答:
切换tab的时候设置滚动距离为0
每次点tab都滚回页面顶部
切换tab的时候 先设置数组为空再重新赋值。你会发现每次都在顶部。