Skip to content

tiiime/ZoomableRecyclerView

Repository files navigation

ZoomableRecyclerView

A customizable Android RecyclerView with smooth zooming and panning capabilities, perfect for building image galleries, comic readers, or any content that requires pinch-to-zoom functionality.

Features

  • Smooth pinch-to-zoom and double-tap to zoom
  • Smooth panning when zoomed in
  • Fling and over-scroll support
  • Easy to integrate with existing RecyclerView setups
  • Customizable zoom levels and animation duration

Usage

  1. Add ZoomableRecyclerView to your layout:
<io.github.tiiime.manga.widget.ZoomableRecyclerView
    android:id="@+id/zoomableRecyclerView"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    />
  1. Set up your adapter as you would with a regular RecyclerView:
val adapter = YourAdapter()
zoomableRecyclerView.adapter = adapter
zoomableRecyclerView.layoutManager = LinearLayoutManager(context)

Preview

output.mp4

TODO

  • bugfix

About

ZoomableRecyclerView,支持拖拽缩放的 RecyclerView

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages