# FishBun **Repository Path**: huaju/FishBun ## Basic Information - **Project Name**: FishBun - **Description**: :blowfish:FishBun is Image Picker for android. - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-10-05 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # FishBun [](https://android-arsenal.com/details/1/2785) [](https://travis-ci.org/sangcomz/FishBun) [](https://codecov.io/gh/sangcomz/FishBun) [](https://bintray.com/sangcomz/maven/fishbun/_latestVersion)
_FishBun_ is a highly customizable image picker for Android.
## What's New in _FishBun_ 1.0.0-alpha03? :tada:
- Refactoring for rapid development:rocket::rocket::rocket:
- Change PickerSpanCount default value (`3`->`4`)
- target SDK 29 support
- In API 29 or higher, the camera can be used only in the total image folder.
- Fix Issue(#215)
- Change DetailView statusBar color
- Removed Picasso and added Coil
## Customizable Styles
_FishBun_ supports various visual styles and allows fine-tuning for details. Just to show some examples:
#### Default
##### Code
```java
FishBun.with(WithActivityActivity.this)
.setImageAdapter(new GlideAdapter())
.startAlbum();
```
##### Screenshots
#### Dark
##### Code
```java
FishBun.with(WithActivityActivity.this)
.setImageAdapter(new GlideAdapter())
.setMaxCount(5)
.setMinCount(3)
.setPickerSpanCount(5)
.setActionBarColor(Color.parseColor("#795548"), Color.parseColor("#5D4037"), false)
.setActionBarTitleColor(Color.parseColor("#ffffff"))
.setArrayPaths(path)
.setAlbumSpanCount(2, 3)
.setButtonInAlbumActivity(false)
.setCamera(true)
.exceptGif(true)
.setReachLimitAutomaticClose(true)
.setHomeAsUpIndicatorDrawable(ContextCompat.getDrawable(this, R.drawable.ic_custom_back_white))
.setDoneButtonDrawable(ContextCompat.getDrawable(this, R.drawable.ic_custom_ok))
.setAllDoneButtonDrawable(ContextCompat.getDrawable(this, R.drawable.ic_custom_ok))
.setIsUseAllDoneButton(ContextCompat.getDrawable(this, R.drawable.ic_custom_ok))
.setAllViewTitle("All")
.setMenuAllDoneText("All Done")
.setActionBarTitle("FishBun Dark")
.textOnNothingSelected("Please select three or more!")
.exceptMimeType(listOf(MimeType.GIF))
.setSpecifyFolderList(arrayListOf("Screenshots", "Camera"))
.startAlbum();
```
##### Screenshots
#### Light
##### Code
```java
FishBun.with(WithActivityActivity.this)
.setImageAdapter(new GlideAdapter())
.setPickerCount(50)
.setPickerSpanCount(4)
.setActionBarColor(Color.parseColor("#ffffff"), Color.parseColor("#ffffff"), true)
.setActionBarTitleColor(Color.parseColor("#000000"))
.setArrayPaths(path)
.setAlbumSpanCount(1, 2)
.setButtonInAlbumActivity(true)
.setCamera(false)
.exceptGif(true)
.setReachLimitAutomaticClose(false)
.setHomeAsUpIndicatorDrawable(ContextCompat.getDrawable(this, R.drawable.ic_arrow_back_black_24dp))
.setOkButtonDrawable(ContextCompat.getDrawable(this, R.drawable.ic_check_black_24dp))
.setAllViewTitle("All of your photos")
.setActionBarTitle("FishBun Light")
.textOnImagesSelectionLimitReached("You can't select any more.")
.textOnNothingSelected("I need a photo!")
.startAlbum();
```
##### Screenshots
## How to Setup
Fishbun 0.10.0 and above only supports projects that have been migrated to [androidx](https://developer.android.com/jetpack/androidx/). For more information, read Google's [migration guide](https://developer.android.com/jetpack/androidx/migrate).
Setting up _FishBun_ requires to add this Gradle configuration:
repositories {
jcenter()
}
dependencies {
// Under the Android Plugin 3.0.0.
compile 'com.sangcomz:FishBun:1.0.0-alpha02'
compile 'com.squareup.picasso:picasso:2.71828'
compile 'io.coil-kt:coil:0.11.0'
or
compile 'com.github.bumptech.glide:glide:4.9.0'
// Android plugin 3.0.0 or higher.
implementation 'com.sangcomz:FishBun:1.0.0-alpha03'
implementation 'io.coil-kt:coil:0.11.0'
or
implementation 'com.github.bumptech.glide:glide:4.11.0'
}
and to allow the following permissions in your `Manifest`:
# Apps using FishBun
## If you are using this library in your app, let me know.
| Project Name | Result Screen |
|:---------:|---|
| Pandaz(unavailable now) |
|
| Multi photo resize compress crop in batch PicTools
|
# Contribution
Any suggestions or contributions would be welcomed.
[CONTRIBUTING](https://github.com/sangcomz/FishBun/blob/master/CONTRIBUTING.md)
# Feedback
Bug reports and feature requests can be submitted [here](https://github.com/sangcomz/FishBun/issues)
(please read the [instructions](https://github.com/sangcomz/FishBun/blob/master/CONTRIBUTING.md) on how to report a bug and request feature).
# License
Copyright 2019 Seokwon Jeong
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.