Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/developer-shivam/Diagonalify
Diagonal cut view
https://github.com/developer-shivam/Diagonalify
Last synced: 3 months ago
JSON representation
Diagonal cut view
- Host: GitHub
- URL: https://github.com/developer-shivam/Diagonalify
- Owner: developer-shivam
- Created: 2016-10-02T17:02:49.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-11-21T06:58:55.000Z (almost 7 years ago)
- Last Synced: 2024-06-16T03:36:33.257Z (5 months ago)
- Language: Java
- Homepage:
- Size: 1.83 MB
- Stars: 352
- Watchers: 11
- Forks: 65
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-github-android-ui - Diagonalify - 创建图像视图的对角线切割 (ImageView)
README
# Diagonalify
####Create diagonal cuts on image view#### Min SDK 9
![Banner](art/banner.png)
## Screnshots![Screenshot](art/screenshot_1.png) ![Screenshot](art/screenshot_2.png)
## Usage
Add these lines in your build.gradle file at root level:```xml
repositories {
jcenter()
maven { url "https://jitpack.io" }
}
``````xml
Add these lines in your build.gradle file at root level:
dependencies {
compile 'com.github.developer-shivam:Diagonalify:1.1'
}
```## Basic Usage
###Java
```javaDiagonalView diagonalView = new DiagonalView(this);
diagonalView.setAngle(15);
diagonalView.setDiagonalGravity(DiagonalView.LEFT);
diagonlaView.setDiagonalColor(Color.BLACK);
diagonalView.setBackgroundColor(Color.WHITE);```
###XML
```xml
```
## Custom Attributes
### Diagonal Color
```xml
diagonal:diagonalColor="#FFFFFF"
```
### Background Color
```xml
diagonal:backgroundColor="#50F44336"
```
### Diagonal Angle
```xml
diagonal:angle="15"
```## License
Copyright (c) 2016 Shivam SatijaLicensed under the [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0.html)