PullZoomView
PullZoomView copied to clipboard
类似QQ空间,新浪微博个人主页下拉头部放大的布局效果,支持ListView,GridView,ScrollView,WebView,RecyclerView,以及其他的任意View和ViewGroup。支持头部视差动画,阻尼下拉放大,滑动过程监听。
Would it be possible to expand header in ScrollView on fling? Right now if you fling, content scroll stops when there's nothing else to scroll, but header does not expand,...
我想跟HeaderViewPager 一起使用,实现下拉放大上提停靠一起使用要怎么做,应该谁嵌套谁?
下拉放大头部视图时,出现滑动冲突
使用的是Recyclerview方式下拉放大,LayoutManager使用的是 ExpandLinearLayoutManager。Adapter是[BaseRecyclerViewAdapterHelper](https://github.com/CymChad/BaseRecyclerViewAdapterHelper/)。我已经设置了 ``` pzv.setIsParallax(true); //允许视差动画 pzv.setIsZoomEnable(true); //允许头部放大 pzv.setSensitive(1.5f); //敏感度1.5 pzv.setZoomTime(500); //头部缩放时间500毫秒 ``` 可是当第一次打开页面时,头部可以显示出来,但是recyclerview列表显示不出来,而且不支持下拉放大。 改成Demo 中的MyAdapter之后列表可以显示出来,但是为什么用BaseRecyclerViewAdapterHelper就不可以呢。难道是和这个库不兼容吗?还是我设置不对?
使用View#getTag (int key)代替View#getTag()做到与Glide这种库的兼容
``` E/ScrollView: Invalid pointerId=-1 in onTouchEvent E/InputEventReceiver: Exception dispatching input event. E/MessageQueue-JNI: Exception in MessageQueue callback: handleReceiveCallback E/MessageQueue-JNI: java.lang.IllegalArgumentException: pointerIndex out of range at android.view.MotionEvent.nativeGetAxisValue(Native Method) at android.view.MotionEvent.getY(MotionEvent.java:2072) at android.widget.ScrollView.onTouchEvent(ScrollView.java:744)...
Is it possible to start the zooming effect during the fling? Right now if you fling and reach the top, everything stops. Then you have to try to scroll again...
cast转换异常
java.lang.ClassCastException: com.rablive.jwrablive.a.a.a cannot be cast to java.lang.String at com.lzy.widget.PullZoomView.a(PullZoomView.java:130) at com.lzy.widget.PullZoomView.a(PullZoomView.java:137) at com.lzy.widget.PullZoomView.a(PullZoomView.java:137) at com.lzy.widget.PullZoomView.a(PullZoomView.java:137) at com.lzy.widget.PullZoomView.a(PullZoomView.java:137) at com.lzy.widget.PullZoomView.a(PullZoomView.java:137) at com.lzy.widget.PullZoomView.a(PullZoomView.java:137)
scrollview和listview一起用时,listview的adapter中的getview会多次调用。严重影响效率。