{"id":13643997,"url":"https://github.com/werbhelius/PickPhotoSample","last_synced_at":"2025-04-21T06:32:29.750Z","repository":{"id":96548034,"uuid":"77729236","full_name":"werbhelius/PickPhotoSample","owner":"werbhelius","description":"Photo Picker Of Android Library","archived":false,"fork":false,"pushed_at":"2019-01-02T10:44:16.000Z","size":38225,"stargazers_count":460,"open_issues_count":5,"forks_count":92,"subscribers_count":13,"default_branch":"master","last_synced_at":"2024-08-04T00:06:48.332Z","etag":null,"topics":["album","android","gallery","photo-gallery","photopicker","pickphoto"],"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/werbhelius.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}},"created_at":"2016-12-31T06:55:12.000Z","updated_at":"2024-07-07T14:57:05.000Z","dependencies_parsed_at":"2023-03-25T15:03:39.794Z","dependency_job_id":null,"html_url":"https://github.com/werbhelius/PickPhotoSample","commit_stats":null,"previous_names":["werb/pickphotosample"],"tags_count":19,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/werbhelius%2FPickPhotoSample","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/werbhelius%2FPickPhotoSample/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/werbhelius%2FPickPhotoSample/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/werbhelius%2FPickPhotoSample/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/werbhelius","download_url":"https://codeload.github.com/werbhelius/PickPhotoSample/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250008245,"owners_count":21359954,"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":["album","android","gallery","photo-gallery","photopicker","pickphoto"],"created_at":"2024-08-02T01:01:56.031Z","updated_at":"2025-04-21T06:32:24.741Z","avatar_url":"https://github.com/werbhelius.png","language":"Kotlin","readme":"# PickPhotoView\n\nA Library help u to pick photos.\n\nClick to download lastest demo ⬇️ or select [Release Version](https://github.com/Werb/PickPhotoSample/releases)\n\n[![download](/app/src/main/res/mipmap-xhdpi/ic_launcher.png)](https://fir.im/hm38)\n\n## Last Update (2019.1.2)\n#### [v0.4.8](https://github.com/Werb/PickPhotoSample/releases/tag/v0.4.8)\n1. update third part lib version\n2. fix some bug\n3. add proguard\n\n## Screenshot\n![one](./screenshots/1.png)\n![two](./screenshots/2.png)\n\n## Dependency\n\n[![License](https://img.shields.io/badge/license-Apache%202-green.svg)](https://github.com/Werb/PickPhotoSample/blob/master/LICENSE)\n[![last-version](https://api.bintray.com/packages/werbhelius/maven/pickphotoview/images/download.svg) ](https://bintray.com/werbhelius/maven/pickphotoview/_latestVersion)\n\nthe last-version is [releases-version](https://github.com/Werb/PickPhotoSample/releases)️\n\n#### Gradle\n\n```gradle\n  compile 'com.werb.pickphotoview:pickphotoview:0.4.8'  // Last Version\n```\n\nsome Library already dependency\n\n* Glide\n* Recyclerview\n* Gson\n* [Moretype - new method to build data in RecyclerView with Kotlin! ](https://github.com/Werb/MoreType)\n* [EventBusKotlin - A Simple EventBus](https://github.com/Werb/EventBusKotlin)\n\nIf you don't want to dependency this Library version , you can replace it just like\n\n```\n  compile ('com.werb.pickphotoview:pickphotoview:last-version',{\n        exclude group: 'com.google.code.gson'\n  })\n  compile 'com.google.code.gson:gson:XXXX'\n```\n\nNew Version 0.3.6+ build with Kotlin new feature `LayoutContainer` , so you must add this command in your **module build.gradle**\n```gradle\napply plugin: 'kotlin-android-extensions'\n```\nand config this command in `android{}`\n```gradle\nandroidExtensions {\n    experimental = true\n}\n```\n**when new feature published in kotlin release version it will built-in code and no need for config**\n\n## Usage\n\nMake sure you have permissions about CAMERA and WRITE／READ_EXTERNAL_STORAGE before use\n\n[PermissionsChecker : A Library help u to check permissions on Android M.](https://github.com/Werb/PermissionsCheckerSample)\n\n#### Register Provider in your app AndroidManifest.xml\n\n```\n    \u003cprovider\n        android:name=\"com.werb.pickphotoview.provider.PickProvider\"\n        android:authorities=\"${applicationId}.provider\"\n        android:exported=\"false\"\n        android:grantUriPermissions=\"true\"\u003e\n        \u003cmeta-data\n            android:name=\"android.support.FILE_PROVIDER_PATHS\"\n            android:resource=\"@xml/pick_file_paths\"/\u003e\n    \u003c/provider\u003e\n```\n\n#### Initialize PickPhotoView\n\n```java\n new PickPhotoView.Builder(MainActivity.this)\n    .setPickPhotoSize(1)                  // select image size\n    .setClickSelectable(true)             // click one image immediately close and return image\n    .setShowCamera(true)                  // is show camera\n    .setSpanCount(3)                      // span count\n    .setLightStatusBar(true)              // lightStatusBar used in Android M or higher\n    .setStatusBarColor(R.color.white)     // statusBar color\n    .setToolbarColor(R.color.white)       // toolbar color\n    .setToolbarTextColor(R.color.black)   // toolbar text color\n    .setSelectIconColor(R.color.pink)     // select icon color\n    .setShowGif(false)                    // is show gif\n    .start();\n```\n\n#### onActivityResult\n\n```java\n  @Override\n    protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n        super.onActivityResult(requestCode, resultCode, data);\n        if(resultCode == 0){\n            return;\n        }\n        if(data == null){\n            return;\n        }\n        if (requestCode == PickConfig.PICK_PHOTO_DATA) {\n            ArrayList\u003cString\u003e selectPaths = (ArrayList\u003cString\u003e) data.getSerializableExtra(PickConfig.INTENT_IMG_LIST_SELECT);\n            // do something u want\n        }\n    }\n```\n\n## proguard\n[proguard-rules.pro](./app/proguard-rules.pro)\n\n## License\n\n[Apache2.0](https://github.com/Werb/PickPhotoSample/blob/master/LICENSE)\n","funding_links":[],"categories":["图片"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwerbhelius%2FPickPhotoSample","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwerbhelius%2FPickPhotoSample","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwerbhelius%2FPickPhotoSample/lists"}