{"id":13786865,"url":"https://github.com/VEINHORN/ScrollGalleryView","last_synced_at":"2025-05-12T00:30:34.330Z","repository":{"id":35959033,"uuid":"40249070","full_name":"VEINHORN/ScrollGalleryView","owner":"VEINHORN","description":":bridge_at_night: Android image gallery with bottom scroll view","archived":false,"fork":false,"pushed_at":"2025-03-09T17:34:13.000Z","size":4274,"stargazers_count":531,"open_issues_count":32,"forks_count":157,"subscribers_count":21,"default_branch":"master","last_synced_at":"2025-05-08T03:18:53.730Z","etag":null,"topics":["android","fresco","gallery","glide","picasso","scrollgalleryview","video"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/VEINHORN.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-08-05T14:14:35.000Z","updated_at":"2025-03-09T14:34:10.000Z","dependencies_parsed_at":"2024-05-02T23:48:28.141Z","dependency_job_id":"d952a338-2c37-4b4d-9720-10432032d3ec","html_url":"https://github.com/VEINHORN/ScrollGalleryView","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VEINHORN%2FScrollGalleryView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VEINHORN%2FScrollGalleryView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VEINHORN%2FScrollGalleryView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VEINHORN%2FScrollGalleryView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/VEINHORN","download_url":"https://codeload.github.com/VEINHORN/ScrollGalleryView/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253655746,"owners_count":21943067,"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":["android","fresco","gallery","glide","picasso","scrollgalleryview","video"],"created_at":"2024-08-03T20:00:20.121Z","updated_at":"2025-05-12T00:30:32.779Z","avatar_url":"https://github.com/VEINHORN.png","language":"Java","funding_links":[],"categories":["Library"],"sub_categories":[],"readme":"# ScrollGalleryView\n\n[![Build Status](https://travis-ci.org/VEINHORN/ScrollGalleryView.svg?branch=master)](https://travis-ci.org/VEINHORN/ScrollGalleryView)\n[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-ScrollGalleryView-brightgreen.svg?style=flat)](https://android-arsenal.com/details/1/2472)\n[![Join the chat at https://gitter.im/VEINHORN/ScrollGalleryView](https://badges.gitter.im/VEINHORN/ScrollGalleryView.svg)](https://gitter.im/VEINHORN/ScrollGalleryView?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge\u0026utm_content=badge)\n\nScrollGalleryView is a flexible library which helps you to create awesome media galleries in your Android application. It's easily integrated with the most popular image loading libraries such as Picasso, Glide and Fresco.\n\n![ScrollGalleryView](http://i.imgur.com/xrBt4Xx.gif)\n\n## Key features\n\n- Easy way to select images in gallery (thumbnails)\n- Zooming\n- Simple API\n- Video\n\n## Installing\n\nAdd [JitPack](https://jitpack.io) repository to your root `build.gradle` (see more details [here](https://github.com/VEINHORN/ScrollGalleryView/issues/71)):\n\n```gradle\nallprojects {\n    repositories {\n        // ...\n        maven { url 'https://jitpack.io' }\n    }\n}\n```\n\nAdd dependency to your module `build.gradle`:\n\n```gradle\nimplementation 'com.veinhorn.scrollgalleryview:library:1.2.6'\n```\n\n### MediaLoaders\n\nThere are several MediaLoaders implementations for most popular caching libraries: Picasso, Glide, Fresco.\n\n#### Picasso\n\n```gradle\nimplementation 'com.veinhorn.scrollgalleryview:picasso-loader:1.2.4'\n```\n\n#### Glide\n\n```gradle\nimplementation 'com.veinhorn.scrollgalleryview:glide-loader:1.2.9'\n```\n\n#### Fresco\n\n```gradle\nimplementation 'com.veinhorn.scrollgalleryview:fresco-loader:1.2.4'\n```\n\n## Usage\n\nAdd *ScrollGalleryView* to your layout:\n\n```xml\n\u003cLinearLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"match_parent\"\u003e\n    \u003ccom.veinhorn.scrollgalleryview.ScrollGalleryView\n        android:id=\"@+id/scroll_gallery_view\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"match_parent\"\n        android:background=\"#000\"/\u003e\n\u003c/LinearLayout\u003e\n```\n\nInitialize *ScrollGalleryView* in your activity:\n\n```java\nimport static com.veinhorn.scrollgalleryview.loader.picasso.dsl.DSL.*; // simplifies adding media\n\npublic class MainActivity extends FragmentActivity {\n    private ScrollGalleryView galleryView;\n\n    @Override\n    protected void onCreate(Bundle savedInstanceState) {\n        super.onCreate(savedInstanceState);\n        setContentView(R.layout.activity_main);\n\n        galleryView = ScrollGalleryView\n                .from((ScrollGalleryView) findViewById(R.id.scroll_gallery_view))\n                .settings(\n                        GallerySettings\n                                .from(getSupportFragmentManager())\n                                .thumbnailSize(100)\n                                .enableZoom(true)\n                                .build()\n                )\n                .add(image(\"http://pirate-islands.com/wp-content/uploads/2018/07/07_Dom-Fernando-II_01-636x310.jpg\"))\n                .add(image(\"http://povodu.ru/wp-content/uploads/2016/04/pochemu-korabl-derzitsa-na-vode.jpg\"))\n                .add(video(\"http://www.sample-videos.com/video/mp4/720/big_buck_bunny_720p_1mb.mp4\", R.mipmap.default_video))\n                .build();\n    }\n}\n```\n\nIf you use *ScrollGalleryView* version prior `1.2.0` or need more info about gallery initialization you can find it [here](docs/init-gallery.md).\n\n### Adding media\n\nScrollGalleryView supports different types of media such as images and videos. You can create image gallery, video gallery, or mix them in any way. To abstract from concreate way of image loading ScrollGalleryView uses [MediaLoader](library/src/main/java/com/veinhorn/scrollgalleryview/loader/MediaLoader.java) so it makes possible to use different image loading libraries depending on your needs (Picasso, Glide, Fresco).\n\n#### **Picasso** loader\n\n#### Default image loader\n\nLibrary is also contains default image loader but it's not optimized for performance.\n\n\u003e Note: it's highly recommended to use custom image loader against default\n\n### Configuration\n\nYou can specify a bunch of additional settings during gallery initialization.\n\n|Option|Method|Description|\n|------|------|-----------|\n| Thumbnail size | `.setThumbnailSize(200)` | You can configure thumbnails size in |\n| Zoom | `.setZoom(true)` | Enable zoom |\n| Hide thumbnails | `.withHiddenThumbnails(false)` | Hide scroll view container with thumbnails on the bottom of screen |\n| Hide thumbnails on click | `.hideThumbnailsOnClick(true)` | Hide scroll view container with thumbnails when you click on main image area |\n\n### Adding listeners\n\n*ScrollGalleryView* supports adding listeners for events like: image click, long image click, changed page. More details you can find in [separate doc](docs/event-listeners.md).\n\n## Sample application\n\nThe sample application published on Google Play.\n\n[![Get it on Google Play](http://www.android.com/images/brand/get_it_on_play_logo_small.png)](https://play.google.com/store/apps/details?id=com.veinhorn.scrollgalleryview)\n\n## License\n\n    MIT License\n    \n    Copyright (c) 2019 Boris Korogvich\n    \n    Permission is hereby granted, free of charge, to any person obtaining a copy\n    of this software and associated documentation files (the \"Software\"), to deal\n    in the Software without restriction, including without limitation the rights\n    to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n    copies of the Software, and to permit persons to whom the Software is\n    furnished to do so, subject to the following conditions:\n    \n    The above copyright notice and this permission notice shall be included in all\n    copies or substantial portions of the Software.\n    \n    THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n    FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n    AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n    LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n    OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n    SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FVEINHORN%2FScrollGalleryView","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FVEINHORN%2FScrollGalleryView","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FVEINHORN%2FScrollGalleryView/lists"}