Squint
Provide Diagonal cut on view with awesome customization #DiagonalView
Install / Use
/learn @IntruderShanky/SquintREADME
Squint
Provide Diagonal cut on view with awesome customization #DiagonalView
<a href='https://ko-fi.com/A373L0C' target='_blank'><img height='36' style='border:0px;height:36px;' src='https://az743702.vo.msecnd.net/cdn/kofi5.png?v=f' border='0' alt='Buy Me a Coffee at ko-fi.com' /></a>
<a href='https://play.google.com/store/apps/details?id=com.intrusoft.islibrarydemo&utm_source=global_co&utm_small=prtnr&utm_content=Mar2515&utm_campaign=PartBadge&pcampaignid=MKT-Other-global-all-co-prtnr-py-PartBadge-Mar2515-1'><img alt='Get it on Google Play' src='https://play.google.com/intl/en_us/badges/images/generic/en_badge_web_generic.png' width="193" height="75"/></a>
Preview

- Provide Diagonal anywhere we want
- Provide Tint filter on image
- Provide Solid color shape
- Fully Customizable
Usage
Step 1. Add the JitPack repository to your build file
allprojects {
repositories {
...
maven { url "https://jitpack.io" }
}
}
Step 2. Add the dependency
dependencies {
compile 'com.github.IntruderShanky:Squint:3.0.1'
}

Implementation
###XML Implementation:
<com.intrusoft.squint.DiagonalView
android:id="@+id/diagonal"
android:layout_width="match_parent"
android:layout_height="240dp"
android:scaleType="centerCrop"
android:src="@drawable/c1"
squint:diagonalDirection="bottom_to_top"
squint:angle="12"
squint:gravity="right" />
###Attributes ####Diagonal Angle
squint:angle
####Diagonal Gravity
squint:gravity="left"
squint:gravity="right"
squint:gravity="top"
squint:gravity="bottom"
####Diagonal Direction
squint:diagonalDirection="left_to_right"
squint:diagonalDirection="top_to_bottom"
squint:diagonalDirection="right_to_left"
squint:diagonalDirection="bottom_to_top"
####Background Tint Color (Color Shold have some alpha value, default value 55)
squint:tint="@color/your_color"
####To make solid color Diagonal
squint:solidColor="@color/your_color"
###Java Implementation:
DiagonalView diagonalView = (DiagonalView) findViewById(R.id.diagonal);
// to set image from resources
diagonalView.setImageSource(R.drawable.your_image);
// to set bitmap
diagonalView.setBitmap(bitmap);
// to set the diagonal angle
diagonalView.setAngle(15);
// to set the diagonal gravity
diagonalView.setGravity(DiagonalView.Gravity.LEFT);
// to set the background color (color should have some alpha val)
diagonalView.setColorTint(Color.GREEN);
// to make the solid color diagonal
diagonalView.setSolidColor(Color.BLUE);
#Licence
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.
Related Skills
diffs
344.1kUse the diffs tool to produce real, shareable diffs (viewer URL, file artifact, or both) instead of manual edit summaries.
clearshot
Structured screenshot analysis for UI implementation and critique. Analyzes every UI screenshot with a 5×5 spatial grid, full element inventory, and design system extraction — facts and taste together, every time. Escalates to full implementation blueprint when building. Trigger on any digital interface image file (png, jpg, gif, webp — websites, apps, dashboards, mockups, wireframes) or commands like 'analyse this screenshot,' 'rebuild this,' 'match this design,' 'clone this.' Skip for non-UI images (photos, memes, charts) unless the user explicitly wants to build a UI from them. Does NOT trigger on HTML source code, CSS, SVGs, or any code pasted as text.
openpencil
2.0kThe world's first open-source AI-native vector design tool and the first to feature concurrent Agent Teams. Design-as-Code. Turn prompts into UI directly on the live canvas. A modern alternative to Pencil.
HappyColorBlend
HappyColorBlendVibe Project Guidelines Project Overview HappyColorBlendVibe is a Figma plugin for color palette generation with advanced tint/shade blending capabilities. It allows designers to
