Skip to content

Dsiner/Album

Repository files navigation

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.

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages