{"id":13644076,"url":"https://github.com/nshmura/SnappyImageViewer","last_synced_at":"2025-04-21T06:32:58.190Z","repository":{"id":99728904,"uuid":"68227858","full_name":"nshmura/SnappyImageViewer","owner":"nshmura","description":"Android Image Viewer inspired by StackOverflow's with swipe-to-dimiss and moving animations.","archived":false,"fork":false,"pushed_at":"2017-02-14T04:12:55.000Z","size":14451,"stargazers_count":102,"open_issues_count":3,"forks_count":14,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-11-09T16:43:46.236Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nshmura.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2016-09-14T17:27:19.000Z","updated_at":"2022-11-29T16:52:02.000Z","dependencies_parsed_at":null,"dependency_job_id":"80cd3daf-2d20-4589-a54e-718d925f7983","html_url":"https://github.com/nshmura/SnappyImageViewer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nshmura%2FSnappyImageViewer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nshmura%2FSnappyImageViewer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nshmura%2FSnappyImageViewer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nshmura%2FSnappyImageViewer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nshmura","download_url":"https://codeload.github.com/nshmura/SnappyImageViewer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250008286,"owners_count":21359959,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-02T01:01:57.202Z","updated_at":"2025-04-21T06:32:53.181Z","avatar_url":"https://github.com/nshmura.png","language":"Java","funding_links":[],"categories":["图片"],"sub_categories":[],"readme":"# SnappyImageViewer\n\nAndroid Image Viewer inspired by StackOverflow's with swipe-to-dimiss and moving animations.\n\n\u003cimg src=\"assets/capture.gif\" alt=\"Gif Animation File\"\u003e\n\n\n## Demo\n\u003ca href=\"https://play.google.com/store/apps/details?id=com.nshmura.snappyimageviewer.demo\"\u003e\u003cimg src=\"assets/googleplay.png\"/\u003e\u003c/a\u003e\n\n\n## Getting Started\n\nIn your `build.gradle`:\n\n```gradle\n repositories {\n    jcenter()\n }\n\n dependencies {\n    compile 'com.nshmura:snappyimageviewer:1.1.0'\n }\n```\n\nIn your layout file:\n```xml\n  \u003ccom.nshmura.snappyimageviewer.SnappyImageViewer\n    android:id=\"@+id/snappy_image_viewer\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"match_parent\"/\u003e\n```\n\nSetup the `SnappyImageViewer`:\n```java\n    SnappyImageViewer snappyImageViewer = (SnappyImageViewer) findViewById(R.id.snappy_image_viewer);\n    snappyImageViewer.setImageResource(R.drawable.sample);\n    snappyImageViewer.addOnClosedListener(new SnappyImageViewer.OnClosedListener() {\n        @Override\n        public void onClosed() {\n            if (Build.VERSION.SDK_INT \u003e= Build.VERSION_CODES.LOLLIPOP) {\n                getWindow().setSharedElementReturnTransition(new Fade(Fade.IN));\n            }\n            ActivityCompat.finishAfterTransition(ImageViewerActivity.this);\n        }\n    });\n```\n\n## TODO\n- Pinch to Zoom\n- Embed in ViewPager\n- Add `ImageViwerActivity` in library\n\n\n## Contributions\n\nYour contributions always welcome!\n\n\n## License\n```\nCopyright (C) 2016 nshmura\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\nhttp://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnshmura%2FSnappyImageViewer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnshmura%2FSnappyImageViewer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnshmura%2FSnappyImageViewer/lists"}