Coder Social home page Coder Social logo

bugfactory9527 / easyalbum Goto Github PK

View Code? Open in Web Editor NEW

This project forked from billywei01/easyalbum

0.0 0.0 0.0 1.33 MB

An easy to use media image and video selector for Android.

Home Page: https://juejin.cn/post/7215163152907092024

License: MIT License

Java 82.78% Kotlin 17.22%

easyalbum's Introduction

EasyAlbum

Maven Central中文文档

EasyAlbum is an easy to use media image and video selector for Android.

1. Feature

  • Support preview;
  • Support custom folder sorting;
  • Support custom filter;
  • Support single selection and multiple selection;
  • Support showing selecting order;
  • Provider 'original' option;
  • Support pass selected medias to reopen album;
  • Support auto refresh when album activity resuming;
  • Caching media data, be fast to reopen album;
  • Support preload to speed up the first time of opening album.

2. Getting start

2.1 Download

implementation 'io.github.billywei01:easyalbum:1.0.6'

2.2 Global Config

EasyAlbum.config()
    .setImageLoader(GlideImageLoader)
    .setDefaultFolderComparator { o1, o2 -> o1.name.compareTo(o2.name)}
    .setItemAnimator(DefaultItemAnimator())

Except for ImageLoader, which must be set, other configurations are optional.

2.3 Start Album

EasyAlbum.from(this)
    .setFilter(TestMediaFilter(option))
    .setSelectedLimit(selectLimit)
    .setOverLimitCallback(overLimitCallback)
    .setSelectedList(mediaAdapter?.getData())
    .setAllString(option.text)
    .enableOriginal()
    .start { result ->
        mediaAdapter?.setData(result.selectedList)
    }

EasyAlbum starts the album with "from" and ends with "start".

License

See the LICENSE file for license rights and limitations.

easyalbum's People

Contributors

billywei01 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.