当前位置: 主页 > 开源代码 >

PullZoomRecyclerVie实现列表下拉放大图片

分享

介绍:

PullZoomRecyclerVie实现列表下拉放大图片

来自:https://github.com/dinuscxj/PullZoomRecyclerView
 

 <app.dinus.com.pullzoomrecyclerview.recyclerview.PullZoomRecyclerVie
    android:id="@+id/recycler_view"
    android:layout_width="match_parent"
    android:layout_height="match_parent"/>

 mPullZoomRecyclerView.setAdapter(new Adapter());
 mPullZoomRecyclerView.setLayoutMannager(new LinearLayoutManager(context));

 mPullZoomRecyclerView.setZoomView(zoomView);
 mPullZoomRecyclerView.setHeaderContainer(headerContainer);


Step one: use the PullZoomRecyclerView in XML
Step two: call the function setAdapter and the function setLayoutManager
Step three: call the function setZoomView and the function setHeaderContainer

运行效果: