GitHub android-crop 图片裁剪
2016-01-18 14:33
435 查看
146
Star2,158
Fork699
Code Issues 51 Pull
requests 16 Pulse Graphs
Android library project for cropping images
204 commits
3 branches
12 releases
19 contributors
Java 100.0%
Java
New fileFind file
HTTPS
Download ZIP
Branch: master
New pull request
Latest commit 2db9b6e on
20 Nov 2015
jdamcd Cleaning
I guess people are just cropping out all the sadness
An Android library project that provides a simple image cropping
based on code from AOSP.
Gradle build & AAR
Modern UI
Backwards compatible to SDK 10
Simple builder for configuration
Example project
First, declare
Listen for the result of the crop (see example project if you want to do some error handling):
Some attributes are provided to customise the crop screen. See the example project theme.
The library provides a utility method to start an image picker:
The AAR is published on Maven Central:
Apps that use this library include: SoundCloud, Depop, Polyvore, TextSecure
This project is based on the AOSP camera image cropper via android-cropimage.
Star2,158
Fork699
jdamcd/android-crop
Code Issues 51 Pullrequests 16 Pulse Graphs
Android library project for cropping images
204 commits
3 branches
12 releases
19 contributors
Java 100.0%
Java
New fileFind file
HTTPS
Download ZIP
Branch: master
New pull request
Latest commit 2db9b6e on
20 Nov 2015
jdamcd Cleaning
.publishing | Extract publishing stuff from build | 2 years ago | |
example | Another Travis fix | 4 months ago | |
gradle/wrapper | Bump versions for Lollipop and Android Studio | a year ago | |
lib | Cleaning | 2 months ago | |
.gitignore | Gradle update | 2 years ago | |
.travis.yml | Override script to skip connectedCheck for now | 4 months ago | |
CHANGELOG.md | Cleaning | 2 months ago | |
README.md | Cleaning | 2 months ago | |
build.gradle | Version bumps & do less with Travis | 4 months ago | |
gradle.properties | Update versions, README & CHANGELOG | 4 months ago | |
gradlew | Removed annotation dependency to make build work | 2 years ago | |
gradlew.bat | Empty project | 2 years ago | |
screenshot.png | 1.0.0 | 9 months ago | |
settings.gradle | Added empty example project | 2 years ago |
README.md
I guess people are just cropping out all the sadnessAn Android library project that provides a simple image cropping
Activity,
based on code from AOSP.
Features
Gradle build & AARModern UI
Backwards compatible to SDK 10
Simple builder for configuration
Example project
Usage
First, declare CropImageActivityin your manifest file:
<activity android:name="com.soundcloud.android.crop.CropImageActivity" />
Crop
Crop.of(inputUri, outputUri).asSquare().start(activity)
Listen for the result of the crop (see example project if you want to do some error handling):
@Override protected void onActivityResult(int requestCode, int resultCode, Intent result) { if (requestCode == Crop.REQUEST_CROP && resultCode == RESULT_OK) { doSomethingWithCroppedImage(outputUri); } }
Some attributes are provided to customise the crop screen. See the example project theme.
Pick
The library provides a utility method to start an image picker:Crop.pickImage(activity)
Dependency
The AAR is published on Maven Central:compile 'com.soundcloud.android:android-crop:1.0.1@aar'
Users
Apps that use this library include: SoundCloud, Depop, Polyvore, TextSecure
How
does it look?
License
This project is based on the AOSP camera image cropper via android-cropimage.Copyright 2015 SoundCloud 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.
相关文章推荐
- android gradle引入sdk下extras下libs中的jar包
- Android onActivityResult获取返回值的用法
- Android大图片裁剪终极解决方案 原理分析(概念)
- Android NDK开发之 与NEON相关的库
- Android点击空白区域,隐藏输入法软键盘
- Android开发新手必须知道的10大严重错误
- Android 获取SD卡路径和判断SD卡是否存在
- Android系统移植与调试之------->如何修改Android的默认语言、默认时区
- android自定义drawable图形
- 深入浅出学习Android ListView基础
- AndroidStudio 使用Hide API
- Android 获取挂载存储卡的信息
- Android 获取验证码倒计时封装
- Android组件
- android MVC
- Androidx学习笔记(2)-- ADB常用指令
- Android权限列表
- android开发游记:关闭所有Activity安全退出应用的方法总结
- Android 编译注解的入门
- Androidx学习笔记(1)---Android项目目录结构等