{"id":19281805,"url":"https://github.com/adevintaspain/prado","last_synced_at":"2025-06-12T08:07:11.309Z","repository":{"id":78027496,"uuid":"95672590","full_name":"AdevintaSpain/Prado","owner":"AdevintaSpain","description":"Your images, your art gallery","archived":false,"fork":false,"pushed_at":"2017-11-09T11:52:33.000Z","size":210843,"stargazers_count":17,"open_issues_count":5,"forks_count":2,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-22T01:38:40.689Z","etag":null,"topics":["android","android-library","image-viewer","kotlin","library"],"latest_commit_sha":null,"homepage":null,"language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AdevintaSpain.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2017-06-28T13:35:19.000Z","updated_at":"2023-09-11T23:09:36.000Z","dependencies_parsed_at":"2023-02-24T04:30:58.348Z","dependency_job_id":null,"html_url":"https://github.com/AdevintaSpain/Prado","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AdevintaSpain/Prado","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AdevintaSpain%2FPrado","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AdevintaSpain%2FPrado/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AdevintaSpain%2FPrado/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AdevintaSpain%2FPrado/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AdevintaSpain","download_url":"https://codeload.github.com/AdevintaSpain/Prado/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AdevintaSpain%2FPrado/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259427005,"owners_count":22855557,"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","android-library","image-viewer","kotlin","library"],"created_at":"2024-11-09T21:24:18.590Z","updated_at":"2025-06-12T08:07:11.283Z","avatar_url":"https://github.com/AdevintaSpain.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Prado\n**Your images, your art galley**\n\n\u003cimg src=\"art/prado.gif\" alt=\"Prado demo\" width=\"320\" height=\"553\"\u003e\n\nShowcase your images like if they were in the Prado museum!\n\n## Installation\n\n#### Prerequisites\n\nminSdkVersion \u003e= 15\n\n#### Download\n\nJust add the library dependency to your app's `build.gradle`:\n\n```gradle\ncompile 'com.schibsted.spain:prado:1.0.0'\n```\n\n## Features\n- Shows your images in a fancy way fullscreen way\n- Go through images by swiping\n- Shows the current image position and the total of images\n- Allows device rotation\n- Adds support for zoom in, zoom out, scroll within the image and double-tap\n- TECH: Support for loading images with Picasso or Glide, choose your favorite!\n\n## Sample Usage\n#### From Kotlin\nCreate the intent from the extension `Context.buildPradoGalleryIntent` including the list of image urls as extra and start it. That's all!\n\n```kotlin\n      override fun onCreate(savedInstanceState: Bundle?) {\n          super.onCreate(savedInstanceState)\n          setContentView(R.layout.activity_main)\n      \n          val imageUrlsList = arrayListOf(\n              \"https://upload.wikimedia.org/wikipedia/commons/3/3f/Francisco_de_Goya_y_Lucientes_-_Los_fusilamientos_del_tres_de_mayo_-_1814.jpg\",\n              \"https://upload.wikimedia.org/wikipedia/commons/9/99/Las_Meninas_01.jpg\",\n              \"https://upload.wikimedia.org/wikipedia/commons/f/f1/El_caballero_de_la_mano_en_el_pecho.jpg\",\n              \"https://upload.wikimedia.org/wikipedia/commons/6/62/The_Garden_of_Earthly_Delights_by_Bosch_High_Resolution_2.jpg\",\n              \"https://upload.wikimedia.org/wikipedia/commons/f/fb/La_Anunciaci%C3%B3n_%28Fra_Angelico-Prado%29.jpg\",\n              \"https://upload.wikimedia.org/wikipedia/commons/thumb/d/d2/Carlos_V_en_M%C3%BChlberg%2C_by_Titian%2C_from_Prado_in_Google_Earth.jpg/3000px-Carlos_V_en_M%C3%BChlberg%2C_by_Titian%2C_from_Prado_in_Google_Earth.jpg\",\n              \"https://upload.wikimedia.org/wikipedia/commons/b/bb/Rembrandt_Harmensz._van_Rijn_014.jpg\",\n              \"https://upload.wikimedia.org/wikipedia/commons/b/b2/Peter_Paul_Rubens_-_The_Three_Graces%2C_1635.jpg\",\n              \"https://upload.wikimedia.org/wikipedia/commons/1/16/Raffael_048.jpg\",\n              \"https://upload.wikimedia.org/wikipedia/commons/d/d4/Crucifixi%C3%B3n_Juan_de_Flandes.jpg\",\n              \"https://upload.wikimedia.org/wikipedia/commons/d/da/Albrecht_D%C3%BCrer_103.jpg\",\n              \"https://upload.wikimedia.org/wikipedia/commons/1/1a/Weyden_Deposition.jpg\",\n              \"https://upload.wikimedia.org/wikipedia/commons/b/b6/El_sue%C3%B1o_de_Jacob%2C_por_Jos%C3%A9_de_Ribera.jpg\",\n              \"https://upload.wikimedia.org/wikipedia/commons/8/8b/Giovanni_Battista_Tiepolo_022.jpg\",\n              \"\"\n          )\n      \n          launcherPicassoButton.setOnClickListener {\n            startActivity(buildPradoGalleryIntent(imageUrlsList))\n          }\n      \n          launcherGlideButton.setOnClickListener {\n            startActivity(buildPradoGalleryIntent(imageUrlsList, ImageProvider.ImageProviderType.GLIDE))\n          }\n```\n\n#### From Java\n```java\n  @Override\n    protected void onCreate(Bundle savedInstanceState) {\n      super.onCreate(savedInstanceState);\n      setContentView(R.layout.activity_main);\n  \n      final List\u003cString\u003e imageUrlsList = new ArrayList\u003c\u003e();\n  \n      imageUrlsList.add(\n              \"https://upload.wikimedia.org/wikipedia/commons/3/3f/Francisco_de_Goya_y_Lucientes_-_Los_fusilamientos_del_tres_de_mayo_-_1814.jpg\");\n      imageUrlsList.add(\n              \"https://upload.wikimedia.org/wikipedia/commons/9/99/Las_Meninas_01.jpg\");\n      imageUrlsList.add(\n              \"https://upload.wikimedia.org/wikipedia/commons/f/f1/El_caballero_de_la_mano_en_el_pecho.jpg\");\n      imageUrlsList.add(\n              \"https://upload.wikimedia.org/wikipedia/commons/6/62/The_Garden_of_Earthly_Delights_by_Bosch_High_Resolution_2.jpg\");\n      imageUrlsList.add(\n              \"https://upload.wikimedia.org/wikipedia/commons/f/fb/La_Anunciaci%C3%B3n_%28Fra_Angelico-Prado%29.jpg\");\n      imageUrlsList.add(\n              \"https://upload.wikimedia.org/wikipedia/commons/thumb/d/d2/Carlos_V_en_M%C3%BChlberg%2C_by_Titian%2C_from_Prado_in_Google_Earth.jpg/3000px-Carlos_V_en_M%C3%BChlberg%2C_by_Titian%2C_from_Prado_in_Google_Earth.jpg\");\n      imageUrlsList.add(\n              \"https://upload.wikimedia.org/wikipedia/commons/b/bb/Rembrandt_Harmensz._van_Rijn_014.jpg\");\n      imageUrlsList.add(\n              \"https://upload.wikimedia.org/wikipedia/commons/b/b2/Peter_Paul_Rubens_-_The_Three_Graces%2C_1635.jpg\");\n      imageUrlsList.add(\n              \"https://upload.wikimedia.org/wikipedia/commons/1/16/Raffael_048.jpg\");\n      imageUrlsList.add(\n              \"https://upload.wikimedia.org/wikipedia/commons/d/d4/Crucifixi%C3%B3n_Juan_de_Flandes.jpg\");\n      imageUrlsList.add(\n              \"https://upload.wikimedia.org/wikipedia/commons/d/da/Albrecht_D%C3%BCrer_103.jpg\");\n      imageUrlsList.add(\n              \"https://upload.wikimedia.org/wikipedia/commons/1/1a/Weyden_Deposition.jpg\");\n      imageUrlsList.add(\n              \"https://upload.wikimedia.org/wikipedia/commons/b/b6/El_sue%C3%B1o_de_Jacob%2C_por_Jos%C3%A9_de_Ribera.jpg\");\n      imageUrlsList.add(\n              \"https://upload.wikimedia.org/wikipedia/commons/8/8b/Giovanni_Battista_Tiepolo_022.jpg\");\n      imageUrlsList.add(\"\");\n  \n      Button launcherPicassoButton = (Button) findViewById(R.id.launcherPicassoButton);\n      launcherPicassoButton.setOnClickListener(new View.OnClickListener() {\n        @Override\n        public void onClick(View view) {\n          startActivity(PradoGalleryActivity.buildPradoGalleryIntent(MainActivity.this, imageUrlsList));\n        }\n      });\n  \n      Button launcherGlideButton = (Button) findViewById(R.id.launcherGlideButton);\n      launcherGlideButton.setOnClickListener(new View.OnClickListener() {\n        @Override\n        public void onClick(View view) {\n          startActivity(PradoGalleryActivity.buildPradoGalleryIntent(MainActivity.this, imageUrlsList,\n              ImageProvider.ImageProviderType.GLIDE));\n        }\n      });\n```\n\n## Open source libraries we use\n- [Picasso](https://github.com/square/picasso)\n- [Glide](https://github.com/bumptech/glide)\n- [PhotoView](https://github.com/chrisbanes/PhotoView)\n- [OkHttp](https://github.com/square/okhttp)\n- [RecyclerViewSnap](https://github.com/rubensousa/RecyclerViewSnap)\n- [Barista](https://github.com/SchibstedSpain/Barista)\n\n## CHANGELOG\n**1.0.0**\n- Initial release!\n\n## License\n\n```\nCopyright 2017 Schibsted Classified Media Spain S.L.\n\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\n   http://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```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadevintaspain%2Fprado","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadevintaspain%2Fprado","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadevintaspain%2Fprado/lists"}