GithubHelp home page GithubHelp logo

dsiner / album Goto Github PK

View Code? Open in Web Editor NEW
8.0 2.0 0.0 766 KB

A local image selector for Android; 支持仿微信图片选择UI,实现了拍照、图片选择(单选/多选)、预览、编辑画图等功能

License: Apache License 2.0

Java 100.00%
album gallery android-image-picker android-image-selector android-image-viewer drawing

album's Introduction

Album for Android

License API

Album is a local image selector for Android.

Set up

Maven:

<dependency>
  <groupId>com.dsiner.lib</groupId>
  <artifactId>album</artifactId>
  <version>2.0.0</version>
</dependency>

or Gradle:

// AndroidX
implementation 'com.dsiner.lib:album:2.0.0'
// Or Support
implementation 'com.dsiner.lib:album:1.0.1'

Features

  • Use it in Activity or Fragment
  • Take a picture
  • Select images
  • Preview pictures in the gallery and select pictures in the gallery.
  • Supports zooming, by various touch gestures.
  • Supports drawing, you can draw pictures in different colors.

Screenshot

Artboard

How do I use it?

Preview:

    PhotoPreviewActivity.openActivity(this, Arrays.asList(url1, url2, url3), 1);

Take a picture:

    CaptureActivity.openActivityForResult(this, REQUEST_CODE_CAPTURE);

Select images:

    Album.with(this)
            .capture(false)
            .spanCount(4)
            .originEnable(true)
            .maxSelectable(9)
            .startActivityForResult(REQUEST_CODE_ALBUM);

Thanks

Licence

Copyright 2017 D

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.

album's People

Contributors

dsiner avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

album's Issues

增加一个橡皮擦功能

想在这个基础上再增加一个橡皮擦功能有思路没。我自己尝试增加了橡皮擦画笔,但达不到预期,作者有思路可以借鉴以下嘛。。感谢

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.