santalu / Diagonal Imageview
Licence: apache-2.0
A simple imageview which allows you to create diagonal cut views easily
Stars: ✭ 257
Programming Languages
kotlin
9241 projects
Projects that are alternatives of or similar to Diagonal Imageview
SquareImageView
SquareImageView is a simple wrapper library for Android ImageView
Stars: ✭ 28 (-89.11%)
Mutual labels: imageview
bubble-layout
An Android ViewGroup that displays avatar bubbles... similar to the chat bubbles on Facebook Messenger.
Stars: ✭ 46 (-82.1%)
Mutual labels: imageview
aspect-ratio-imageview
A simple imageview which scales the width or height aspect with the given ratio
Stars: ✭ 72 (-71.98%)
Mutual labels: imageview
Image-Support
Add badge with counter to ImageView Android.
Stars: ✭ 128 (-50.19%)
Mutual labels: imageview
Glazy Viewpager
Android ViewPager template with cool animation.
Stars: ✭ 250 (-2.72%)
Mutual labels: imageview
NoiseView
Android library written in kotlin that add a noise effect to image.
Stars: ✭ 47 (-81.71%)
Mutual labels: imageview
easy-animated-vector-drawable
A library that helps using Animated Vector Drawables.
Stars: ✭ 40 (-84.44%)
Mutual labels: imageview
FaceAware-Android
this helps to auto zoom for face on ImageView
Stars: ✭ 46 (-82.1%)
Mutual labels: imageview
av.imageview
Titanium native ImageView module that extends the default Titanium ImageView with more capabilities and a different caching system.
Stars: ✭ 97 (-62.26%)
Mutual labels: imageview
RoundImage
This library is used for converting Bitmap or Drawable images to Round or Circular Shape. Round image view for Android or Circular Image View for Android.Tags Android Round Circularimageview Circle Rounded Corner imageview library.
Stars: ✭ 42 (-83.66%)
Mutual labels: imageview
TNImageView-Android
Android Library for making scale-able and rotatable image views or giving this power to your own image view. This repo has been depreciated.
Stars: ✭ 18 (-93%)
Mutual labels: imageview
ProgressableImageView
Change your users progress capability with ProgressableImageView
Stars: ✭ 86 (-66.54%)
Mutual labels: imageview
Leon
Leon is swift library to show and slid images with more gesture
Stars: ✭ 16 (-93.77%)
Mutual labels: imageview
progress-image-view-android
Simple progress with ImageView android
Stars: ✭ 64 (-75.1%)
Mutual labels: imageview
imagin
An attachable image zooming library for the Android ImageView.
Stars: ✭ 17 (-93.39%)
Mutual labels: imageview
Diagonal ImageView
A simple imageview which allows you to create diagonal cut views easily
Samples
Usage
Gradle
allprojects {
repositories {
maven { url 'https://jitpack.io' }
}
}
dependencies {
implementation 'com.github.santalu:diagonal-imageview:1.1.1'
}
XML
<com.santalu.diagonalimageview.DiagonalImageView
android:id="@+id/image"
android:layout_width="120dp"
android:layout_height="120dp"
android:scaleType="centerCrop"
android:src="@drawable/demo"
app:di_borderColor="@color/colorAccent"
app:di_borderEnabled="true"
app:di_borderSize="8dp"
app:di_distance="56dp"
app:di_end="left"
app:di_start="bottom"/>
Attributes
Name | Value |
---|---|
di_start | top, right, bottom, left |
di_end | top, right, bottom, left |
di_distance | dimen |
di_borderSize | dimen |
di_borderColor | color |
di_borderEnabled | true, false |
Notes
- Set start
NONE
to disable masking - After changing attributes call
invalidate()
orpostInvalidate()
to immediately apply changes
License
Copyright 2017 Fatih Santalu
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.
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].