Skip to content

fomdeveloper/FishBun

 
 

Repository files navigation

FishBun

Android Arsenal Build Status Download ##What is FishBun FishBun is Image Picker for android.

##What's New 0.2.2 FishBun

####● Add use Camera in Album - Add setCamera(boolean isCamera)

##How to Use FishBun

###Gradle

repositories {
    jcenter()
}


dependencies {
    //FishBun use this libraries
    compile 'com.android.support:design:23.1.1'
    compile 'com.github.bumptech.glide:glide:3.6.1'

    compile 'com.sangcomz:FishBun:0.2.2@aar'
}

###Manifest

<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />

FishBun.with(MainActivity.this).startAlbum();

and add OnActivityResult

protected void onActivityResult(int requestCode, int resultCode,
                                Intent imageData) {
    super.onActivityResult(requestCode, resultCode, imageData);
    switch (requestCode) {
        case Define.ALBUM_REQUEST_CODE:
            if (resultCode == RESULT_OK) {
                path = imageData.getStringArrayListExtra(Define.INTENT_PATH);
                //You can get image path(ArrayList<String>
                break;
            }
    }
}

you can use also this

        FishBun.with(MainActivity.this)
                .setAlbumThumnaliSize(150)//you can resize album thumnail size
                .setActionBarColor(Color.BLACK, Color.BLUE) // actionBar and StatusBar color
        //        .setActionBarColor(Color.BLACK)           // only actionbar color
                .setPickerCount(12)//you can restrict photo count
                .setArrayPaths(path)//you can choice again.
                .setCamera(true)//you can use camera
                .startAlbum();

##Result Screen <img src="/pic/sim.gif" width=40%">

##Android M Permission FishBun check permission before reading external storage.

<img src="/pic/permission.png" width=40%">

#License

Copyright 2015 Jeong Seok-Won

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%