[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-4198":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":16,"stars7d":17,"stars30d":18,"stars90d":16,"forks30d":16,"starsTrendScore":16,"compositeScore":19,"rankGlobal":10,"rankLanguage":10,"license":20,"archived":21,"fork":21,"defaultBranch":22,"hasWiki":23,"hasPages":23,"topics":24,"createdAt":10,"pushedAt":10,"updatedAt":35,"readmeContent":36,"aiSummary":37,"trendingCount":16,"starSnapshotCount":16,"syncStatus":38,"lastSyncTime":39,"discoverSource":40},4198,"subsampling-scale-image-view","davemorrissey\u002Fsubsampling-scale-image-view","davemorrissey","Android library (AAR). Highly configurable, easily extendable deep zoom view for displaying huge images without loss of detail. Perfect for photo galleries, maps, building plans etc.","",null,"Java",8010,1234,202,45,0,1,8,66.58,"Apache License 2.0",false,"master",true,[25,26,27,28,29,30,31,32,33,34],"android","android-lib","android-library","android-libs","deep-zoom-images","large-images","pan","scale","zoom-gestures","zoom-images","2026-06-12 04:00:21","Subsampling Scale Image View\n===========================\n\nA custom image view for Android, designed for photo galleries and displaying huge images (e.g. maps and building plans) without `OutOfMemoryError`s. Includes pinch to zoom, panning, rotation and animation support, and allows easy extension so you can add your own overlays and touch event detection.\n\nThe view optionally uses subsampling and tiles to support very large images - a low resolution base layer is loaded and as you zoom in, it is overlaid with smaller high resolution tiles for the visible area. This avoids holding too much data in memory. It's ideal for displaying large images while allowing you to zoom in to the high resolution details. You can disable tiling for smaller images and when displaying a bitmap object. There are some advantages and disadvantages to disabling tiling so to decide which is best, see [the wiki](https:\u002F\u002Fgithub.com\u002Fdavemorrissey\u002Fsubsampling-scale-image-view\u002Fwiki\u002F02.-Displaying-images).\n\n#### Guides\n\n* [Releases & downloads](https:\u002F\u002Fgithub.com\u002Fdavemorrissey\u002Fsubsampling-scale-image-view\u002Freleases)\n* [Installation and setup](https:\u002F\u002Fgithub.com\u002Fdavemorrissey\u002Fsubsampling-scale-image-view\u002Fwiki\u002F01.-Setup)\n* [Image display notes & limitations](https:\u002F\u002Fgithub.com\u002Fdavemorrissey\u002Fsubsampling-scale-image-view\u002Fwiki\u002F02.-Displaying-images)\n* [Using preview images](https:\u002F\u002Fgithub.com\u002Fdavemorrissey\u002Fsubsampling-scale-image-view\u002Fwiki\u002F03.-Preview-images)\n* [Handling orientation changes](https:\u002F\u002Fgithub.com\u002Fdavemorrissey\u002Fsubsampling-scale-image-view\u002Fwiki\u002F05.-Orientation-changes)\n* [Advanced configuration](https:\u002F\u002Fgithub.com\u002Fdavemorrissey\u002Fsubsampling-scale-image-view\u002Fwiki\u002F07.-Configuration)\n* [Event handling](https:\u002F\u002Fgithub.com\u002Fdavemorrissey\u002Fsubsampling-scale-image-view\u002Fwiki\u002F09.-Events)\n* [Animation](https:\u002F\u002Fgithub.com\u002Fdavemorrissey\u002Fsubsampling-scale-image-view\u002Fwiki\u002F08.-Animation)\n* [Extension](https:\u002F\u002Fgithub.com\u002Fdavemorrissey\u002Fsubsampling-scale-image-view\u002Fwiki\u002F10.-Extension)\n* [Reference (JavaDocs)](http:\u002F\u002Fdavemorrissey.github.io\u002Fsubsampling-scale-image-view\u002Fjavadoc\u002F)\n\n#### Migration guides\n\nVersions 3.9.0, 3.8.0 and 3.0.0 contain breaking changes. Migration instructions can be found [in the wiki](https:\u002F\u002Fgithub.com\u002Fdavemorrissey\u002Fsubsampling-scale-image-view\u002Fwiki\u002FX.--Migration-guides).\n\n#### Download the sample app\n\n[![Get it on Google Play](docs\u002Fimages\u002Fgoogle_play.png)](https:\u002F\u002Fplay.google.com\u002Fstore\u002Fapps\u002Fdetails?id=com.davemorrissey.labs.subscaleview.sample)\n\n[Kotlin Sample App on GitHub](https:\u002F\u002Fgithub.com\u002Fdavemorrissey\u002Fssiv-kotlin-sample)\n\n#### Demo\n\n![Demo](docs\u002Fimages\u002Fdemo.gif)\n\n## Features\n\n#### Image display\n\n* Display images from assets, resources, the file system or bitmaps\n* Automatically rotate images from the file system (e.g. the camera or gallery) according to EXIF\n* Manually rotate images in 90° increments\n* Display a region of the source image\n* Use a preview image while large images load\n* Swap images at runtime\n* Use a custom bitmap decoder\n\n*With tiling enabled:*\n\n* Display huge images, larger than can be loaded into memory\n* Show high resolution detail on zooming in\n* Tested up to 20,000x20,000px, though larger images are slower\n\n#### Gesture detection\n\n* One finger pan\n* Two finger pinch to zoom\n* Quick scale (one finger zoom)\n* Pan while zooming\n* Seamless switch between pan and zoom\n* Fling momentum after panning\n* Double tap to zoom in and out\n* Options to disable pan and\u002For zoom gestures\n\n#### Animation\n\n* Public methods for animating the scale and center\n* Customisable duration and easing\n* Optional uninterruptible animations\n\n#### Overridable event detection\n* Supports `OnClickListener` and `OnLongClickListener`\n* Supports interception of events using `GestureDetector` and `OnTouchListener`\n* Extend to add your own gestures\n\n#### Easy integration\n* Use within a `ViewPager` to create a photo gallery\n* Easily restore scale, center and orientation after screen rotation\n* Can be extended to add overlay graphics that move and scale with the image\n* Handles view resizing and `wrap_content` layout\n\n## Quick start\n\n**1)** Add this library as a dependency in your app's build.gradle file.\n\n```gradle\ndependencies {\n    implementation 'com.davemorrissey.labs:subsampling-scale-image-view:3.10.0'\n}\n```\n\nIf your project uses AndroidX, change the artifact name as follows:\n\n```gradle\ndependencies {\n    implementation 'com.davemorrissey.labs:subsampling-scale-image-view-androidx:3.10.0'\n}\n```\n\n**2)** Add the view to your layout XML.\n\n```xml\n\u003CLinearLayout xmlns:android=\"http:\u002F\u002Fschemas.android.com\u002Fapk\u002Fres\u002Fandroid\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"match_parent\" >\n\n    \u003Ccom.davemorrissey.labs.subscaleview.SubsamplingScaleImageView\n        android:id=\"@+id\u002FimageView\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"match_parent\"\u002F>\n\n\u003C\u002FLinearLayout>\n```\n\n**3a)** Now, in your fragment or activity, set the image resource, asset name or file path.\n\n```java\nSubsamplingScaleImageView imageView = (SubsamplingScaleImageView)findViewById(id.imageView);\nimageView.setImage(ImageSource.resource(R.drawable.monkey));\n\u002F\u002F ... or ...\nimageView.setImage(ImageSource.asset(\"map.png\"))\n\u002F\u002F ... or ...\nimageView.setImage(ImageSource.uri(\"\u002Fsdcard\u002FDCIM\u002FDSCM00123.JPG\"));\n```\n\n**3b)** Or, if you have a `Bitmap` object in memory, load it into the view. This is unsuitable for large images because it bypasses subsampling - you may get an `OutOfMemoryError`.\n\n```java\nSubsamplingScaleImageView imageView = (SubsamplingScaleImageView)findViewById(id.imageView);\nimageView.setImage(ImageSource.bitmap(bitmap));\n```\n\n## Photo credits\n\n* San Martino by Luca Bravo, via [unsplash.com](https:\u002F\u002Funsplash.com\u002Fphotos\u002FlWAOc0UuJ-A)\n* Swiss Road by Ludovic Fremondiere, via [unsplash.com](https:\u002F\u002Funsplash.com\u002Fphotos\u002F3XN-BNRDUyY)\n\n## About\n\nCopyright 2018 David Morrissey, and licensed under the Apache License, Version 2.0. No attribution is necessary but it's very much appreciated. Star this project if you like it!\n","该项目是一个用于Android的图片显示库，特别适合展示超大尺寸的图片而不会丢失细节。它支持多点触控缩放、平移、旋转和动画功能，并通过分块加载技术避免了内存溢出问题，允许用户在保持低分辨率底图的同时，对可见区域加载高分辨率的小块图片。这种机制非常适合需要处理大图的应用场景，如照片画廊、地图或建筑平面图等。此外，该库还提供了丰富的配置选项和扩展性，便于开发者根据需求添加自定义覆盖层及触摸事件检测等功能。",2,"2026-06-11 02:58:58","top_language"]