{"id":13645486,"url":"https://github.com/IntruderShanky/Squint","last_synced_at":"2025-04-21T14:31:23.404Z","repository":{"id":144137097,"uuid":"69952565","full_name":"IntruderShanky/Squint","owner":"IntruderShanky","description":"Provide Diagonal cut on view with awesome customization #DiagonalView","archived":false,"fork":false,"pushed_at":"2017-02-11T10:02:48.000Z","size":3648,"stargazers_count":681,"open_issues_count":2,"forks_count":76,"subscribers_count":18,"default_branch":"master","last_synced_at":"2024-10-01T07:12:49.862Z","etag":null,"topics":["diagonalview","ui-design"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/IntruderShanky.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2016-10-04T09:52:57.000Z","updated_at":"2024-09-23T11:10:53.000Z","dependencies_parsed_at":null,"dependency_job_id":"f11af799-bfb9-47e9-abb4-60e4fffe3dd8","html_url":"https://github.com/IntruderShanky/Squint","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IntruderShanky%2FSquint","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IntruderShanky%2FSquint/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IntruderShanky%2FSquint/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IntruderShanky%2FSquint/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/IntruderShanky","download_url":"https://codeload.github.com/IntruderShanky/Squint/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223868279,"owners_count":17217064,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["diagonalview","ui-design"],"created_at":"2024-08-02T01:02:35.800Z","updated_at":"2024-11-09T18:31:29.896Z","avatar_url":"https://github.com/IntruderShanky.png","language":"Java","funding_links":["https://ko-fi.com/A373L0C'"],"categories":["其他"],"sub_categories":[],"readme":"# Squint\nProvide Diagonal cut on view with awesome customization #DiagonalView\n\n[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-Squint%20--%20A%20Diagonal%20Cut-brightgreen.svg?style=flat)](http://android-arsenal.com/details/1/4458) [![API](https://img.shields.io/badge/API-9%2B-blue.svg?style=flat)](https://android-arsenal.com/api?level=9) [![](https://jitpack.io/v/IntruderShanky/Squint.svg)](https://jitpack.io/#IntruderShanky/Squint)\n\n\u003ca href='https://ko-fi.com/A373L0C' target='_blank'\u003e\u003cimg 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' /\u003e\u003c/a\u003e \n\n[Demo App - IS Library](https://play.google.com/store/apps/details?id=com.intrusoft.islibrarydemo)\n\n\u003ca href='https://play.google.com/store/apps/details?id=com.intrusoft.islibrarydemo\u0026utm_source=global_co\u0026utm_small=prtnr\u0026utm_content=Mar2515\u0026utm_campaign=PartBadge\u0026pcampaignid=MKT-Other-global-all-co-prtnr-py-PartBadge-Mar2515-1'\u003e\u003cimg 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\"/\u003e\u003c/a\u003e\n\n# Preview\n![Screenshot](Screenshot/barney_squint.png)\n\n* Provide Diagonal anywhere we want\n* Provide Tint filter on image\n* Provide Solid color shape\n* Fully Customizable\n\n# Usage\nStep 1. Add the JitPack repository to your build file\n```groovy\nallprojects {\n        repositories {\n            ...\n            maven { url \"https://jitpack.io\" }\n        }\n    }\n```\nStep 2. Add the dependency\n```groovy\ndependencies {\n  compile 'com.github.IntruderShanky:Squint:3.0.1'\n }\n ```\n \n ![Screenshot](Screenshot/list_squint.png)\n \n# Implementation\n###XML Implementation:\n```xml\n   \u003ccom.intrusoft.squint.DiagonalView\n                android:id=\"@+id/diagonal\"\n                android:layout_width=\"match_parent\"\n                android:layout_height=\"240dp\"\n                android:scaleType=\"centerCrop\"\n                android:src=\"@drawable/c1\"\n                squint:diagonalDirection=\"bottom_to_top\"\n                squint:angle=\"12\"\n                squint:gravity=\"right\" /\u003e\n```\n###Attributes\n####Diagonal Angle\n```xml\n squint:angle\n```\n####Diagonal Gravity\n```xml\nsquint:gravity=\"left\"\nsquint:gravity=\"right\"\nsquint:gravity=\"top\"\nsquint:gravity=\"bottom\"\n```\n####Diagonal Direction\n```xml\nsquint:diagonalDirection=\"left_to_right\"\nsquint:diagonalDirection=\"top_to_bottom\"\nsquint:diagonalDirection=\"right_to_left\"\nsquint:diagonalDirection=\"bottom_to_top\"\n```\n####Background Tint Color (Color Shold have some alpha value, default value 55)\n```xml\nsquint:tint=\"@color/your_color\"\n```\n####To make solid color Diagonal\n```xml\nsquint:solidColor=\"@color/your_color\"\n```\n\n###Java Implementation:\n```java\nDiagonalView diagonalView = (DiagonalView) findViewById(R.id.diagonal);\n\n// to set image from resources        \ndiagonalView.setImageSource(R.drawable.your_image);\n\n// to set bitmap\ndiagonalView.setBitmap(bitmap);\n\n// to set the diagonal angle\ndiagonalView.setAngle(15);\n\n// to set the diagonal gravity\ndiagonalView.setGravity(DiagonalView.Gravity.LEFT);\n\n// to set the background color (color should have some alpha val)\ndiagonalView.setColorTint(Color.GREEN);\n\n// to make the solid color diagonal\ndiagonalView.setSolidColor(Color.BLUE);\n```\n#Licence\n```\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FIntruderShanky%2FSquint","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FIntruderShanky%2FSquint","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FIntruderShanky%2FSquint/lists"}