MCPcopy Index your code
hub / github.com/IntruderShanky/Squint

github.com/IntruderShanky/Squint @3.0.1

Chat with this repo
repository ↗ · DeepWiki ↗ · release 3.0.1 ↗ · + Follow
47 symbols 85 edges 8 files 4 documented · 9%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Squint

Provide Diagonal cut on view with awesome customization #DiagonalView

Android Arsenal API

Demo App - IS Library

Get it on Google Play

Preview

Screenshot

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:2.1.0'
 }
 ```
# Implementation
###XML Implementation:
```xml
 <com.intrusoft.squint.DiagonalView
        android:id="@+id/diagonal"
        android:layout_width="match_parent"
        android:layout_height="350dp"
        squint:angle="15"
        squint:gravity="left"
        squint:scaleType="centerCrop"
        squint:solidColor="@color/solid_color"
        squint:src="https://github.com/IntruderShanky/Squint/raw/3.0.1/@drawable/barney_cover" />

Attributes

Diagonal Angle

 squint:angle

Diagonal Gravity

squint:gravity="left"
squint:gravity="right"

Image ScaleType

squint:scaleType="centerCrop"
squint:scaleType="fitXY"

Image Drawable Resource

squint:src="https://github.com/IntruderShanky/Squint/raw/3.0.1/@drawable/your_image"

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.

Core symbols most depended-on inside this repo

initializeBitmap
called by 5
squint/src/main/java/com/intrusoft/squint/DiagonalView.java
init
called by 3
squint/src/main/java/com/intrusoft/squint/DiagonalView.java
applyColorFilter
called by 2
squint/src/main/java/com/intrusoft/squint/DiagonalView.java
setScaleType
called by 2
squint/src/main/java/com/intrusoft/squint/DiagonalView.java
getPathFor
called by 1
squint/src/main/java/com/intrusoft/squint/PathHelper.java
leftToRight
called by 1
squint/src/main/java/com/intrusoft/squint/PathHelper.java
rightToLeft
called by 1
squint/src/main/java/com/intrusoft/squint/PathHelper.java
topToBottom
called by 1
squint/src/main/java/com/intrusoft/squint/PathHelper.java

Shape

Method 37
Class 8
Enum 2

Languages

Java100%

Modules by API surface

squint/src/main/java/com/intrusoft/squint/DiagonalView.java26 symbols
squint/src/main/java/com/intrusoft/squint/PathHelper.java6 symbols
squint/src/main/java/com/intrusoft/squint/Squint.java5 symbols
squint/src/test/java/com/intrusoft/squint/ExampleUnitTest.java2 symbols
squint/src/androidTest/java/com/intrusoft/squint/ExampleInstrumentedTest.java2 symbols
app/src/test/java/com/intrusoft/diagonalApp/ExampleUnitTest.java2 symbols
app/src/main/java/com/intrusoft/diagonalApp/MainActivity.java2 symbols
app/src/androidTest/java/com/intrusoft/diagonalApp/ExampleInstrumentedTest.java2 symbols

For agents

$ claude mcp add Squint \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page