{"id":13613624,"url":"https://github.com/WendyYanto/android-image-picker","last_synced_at":"2025-04-13T15:33:37.509Z","repository":{"id":112646317,"uuid":"184189739","full_name":"WendyYanto/android-image-picker","owner":"WendyYanto","description":"Image gallery library by using coroutine to help user to choose image (single or multi) from android device without usage of android gallery intent","archived":false,"fork":false,"pushed_at":"2022-06-27T15:52:53.000Z","size":1483,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-11-07T21:42:44.578Z","etag":null,"topics":["coroutines-android","custom-view","image-gallery","image-picker-android","image-picker-library","kotlin-android","kotlin-coroutines","viewbinding"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/WendyYanto.png","metadata":{"files":{"readme":"README.md","changelog":null,"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}},"created_at":"2019-04-30T04:08:39.000Z","updated_at":"2023-03-17T12:16:22.000Z","dependencies_parsed_at":"2023-06-10T10:45:24.291Z","dependency_job_id":null,"html_url":"https://github.com/WendyYanto/android-image-picker","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/WendyYanto%2Fandroid-image-picker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WendyYanto%2Fandroid-image-picker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WendyYanto%2Fandroid-image-picker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WendyYanto%2Fandroid-image-picker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WendyYanto","download_url":"https://codeload.github.com/WendyYanto/android-image-picker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248736315,"owners_count":21153576,"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":["coroutines-android","custom-view","image-gallery","image-picker-android","image-picker-library","kotlin-android","kotlin-coroutines","viewbinding"],"created_at":"2024-08-01T20:00:51.844Z","updated_at":"2025-04-13T15:33:32.499Z","avatar_url":"https://github.com/WendyYanto.png","language":"Kotlin","funding_links":[],"categories":["Android"],"sub_categories":[],"readme":"# Android Image Picker\n\nImage gallery library by using coroutine to help user to choose image (single or multi) from android device without usage of android gallery implicit intent. This library supports **AndroidX** and it is **very recommended** to use **AndroidX** in your project. \n\n[![](https://jitpack.io/v/WendyYanto/android-image-picker.svg)](https://jitpack.io/#WendyYanto/android-image-picker)\n\n![Demo](https://github.com/WendyYanto/android-image-picker/blob/master/images/sample.png)\n\n## Implementation Steps\n\n1. This library has already been included in jitpack.io. In order to use it, you should add it in your root build.gradle at the end of repositories:\n```\nallprojects {\n  repositories {\n    ...\n    maven { url 'https://jitpack.io' }\n  }\n}\n```\n2.  Add the dependency\n```\ndependencies {\n  implementation 'com.github.WendyYanto:android-image-picker:v1.3.0'\n}\n```\n3. Register the code below in Android.Manifest.xml\n```\n// Provide permission to read image in android device\n\u003cuses-permission android:name=\"android.permission.READ_EXTERNAL_STORAGE\" /\u003e\n\n\u003capplication\u003e\n  // Register Activity\n  \u003cactivity android:name=\"dev.wendyyanto.imagepicker.features.gallery.view.GalleryActivity\" /\u003e\n\u003c/application\u003e\n```\n4. Implement dependency injection of this plugin by initialize this code once. Usage of MediaDao is to fetch images using coroutines. It is recommended to add this code when in the UI that require `GalleryActivity`\n```kotlin\n// Kotlin\noverride fun onCreate() {\n  super.onCreate()\n  Injector.store(MediaDao::class.java, MediaDao(this))\n}\n``` \n\n```java\n// Java\n@Override\npublic void onCreate() {\n   Injector.INSTANCE.store(MediaDao.class, new MediaDao(this));\n}\n```\n\n## Configuration\nDefinition of Intent Extra's for GalleryActivity :\n1. `MAX_COUNT`: Maximum images user can select from gallery (default value: 1)\n2. `SUBMIT_BUTTON_STYLE`: Style attributes for submit button (default: android button style)\n3. `THEME`: Theme for GalleryActivity (default: your app theme)\n4. `CATEGORY_DROPDOWN_ITEM_LAYOUT`: Layout for your image category spinner item at the toolbar (default: `android.R.layout.simple_spinner_dropdown_item`)\n\nExample: \n```\nval intent = Intent(this@MainActivity, GalleryActivity::class.java)\nintent.putExtra(GalleryActivity.MAX_COUNT, 10)\nintent.putExtra(GalleryActivity.SUBMIT_BUTTON_STYLE, R.style.MyButton)\nintent.putExtra(GalleryActivity.THEME, R.style.GalleryTheme)\nintent.putExtra(GalleryActivity.CATEGORY_DROPDOWN_ITEM_LAYOUT, R.layout.spinner_item)\n```\nExample Output: \n\n![Styled Gallery](https://github.com/WendyYanto/android-image-picker/blob/master/images/custom_sample.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FWendyYanto%2Fandroid-image-picker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FWendyYanto%2Fandroid-image-picker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FWendyYanto%2Fandroid-image-picker/lists"}