Diagonal cut view

Min SDK   15
Latest Commit   2016-11-14 18:19:50
License   

Github   https://github.com/developer-shivam/Diagonalify

         

使用APP客户端扫描二维码运行Demo


...

developer-shivam

New Delhi, India

https://www.shivamsatija.com
Looking for a new work place!

         

类似的还有....
BitmapMerger Play with bitmaps
android-shape-imageview Custom shaped android imageview components
LargeImage Android 加载大图 可以高清显示10000*10000像素的图片,轻松实现微博长图功能
README

README.md

Diagonalify

####Create diagonal cuts on image view

Min SDK 9

Banner

Screnshots

Screenshot Screenshot

Usage

Add these lines in your build.gradle file at root level:

repositories {
        jcenter()
				maven { url "https://jitpack.io" }
}
Add these lines in your build.gradle file at root level:
dependencies {
    compile 'com.github.developer-shivam:Diagonalify:1.1'    
}

Basic Usage

###Java

		DiagonalView diagonalView = new DiagonalView(this);
    diagonalView.setAngle(15);
    diagonalView.setDiagonalGravity(DiagonalView.LEFT);
		diagonlaView.setDiagonalColor(Color.BLACK);
    diagonalView.setBackgroundColor(Color.WHITE);

###XML

 
    <developer.shivam.library.DiagonalView android:id="@+id/diagonal_view"
        android:layout_width="match_parent"
        android:layout_height="300dp"
        android:src="@drawable/cover_photo"
        android:scaleType="centerCrop"
        diagonal:diagonalColor="#FFFFFF"
        diagonal:backgroundColor="#00F44336"
        diagonal:diagonalGravity="right"
        diagonal:angle="15"/>

Custom Attributes

Diagonal Color

        diagonal:diagonalColor="#FFFFFF"

Background Color

        diagonal:backgroundColor="#50F44336"

Diagonal Angle

        diagonal:angle="15"

License

Copyright (c) 2016 Shivam Satija

Licensed under the Apache License, Version 2.0