ThisisademoofSubsamplingScaleImageView,afreeAndroidlibraryforthedisplayoflargeimages,withgesturedetectionforzoomandpan.Thisdemoshowsmostofthefeaturesavailable.
Thiscustomviewcanbeusedtodisplayimagesinagallery,orforviewinglargeimagessuchasbuildingplans.It'seasilyextendibletoaddoverlaidgraphicsalignedwiththeimage,forexamplemarkerpinsorcustomshapes.
Theproject,includingthesourceofthisapp,ishostedonGitHubathttps://github.com/davemorrissey/subsampling-scale-image-view
Imagedisplay
===================
*Displayhugeimages,largerthancanbeloadedintomemory
*Showhighresolutiondetailonzoomingin
*Testedupto20,000x13,000px,thoughlargerimagesareslower
*Displayimagesfromassetsorthefilesystem
*Automaticallyrotateimagesfromthefilesystem(e.g.thecameraorgallery)accordingtoEXIF
*Manuallyrotateimagesin90°increments
*Swapimagesatruntime
Gesturedetection
===================
*Onefingerpan
*Twofingerpinchtozoom
*Panwhilezooming
*Seamlessswitchbetweenpanandzoom
*Flingmomentumafterpanning
*Doubletaptozoominandout
*Optionstodisablepanand/orzoomgestures
Animation
===================
*Publicmethodsforanimatingthescaleandcenter
*Customisabledurationandeasing
*Optionaluninterruptibleanimations
Easyintegration
===================
*UsewithinaViewPagertocreateaphotogallery
*Easilyrestorescale,centerandorientationafterscreenrotation
*Canbeextendedtoaddoverlaygraphicsthatmoveandscalewiththeimage
*Handlesviewresizingandwrap_contentlayout
Show More