{"id":24452631,"url":"https://github.com/santalu/diagonal-imageview","last_synced_at":"2025-04-05T21:08:50.254Z","repository":{"id":144158495,"uuid":"99770260","full_name":"santalu/diagonal-imageview","owner":"santalu","description":"A simple imageview which allows you to create diagonal cut views easily","archived":false,"fork":false,"pushed_at":"2020-02-07T17:35:24.000Z","size":12711,"stargazers_count":257,"open_issues_count":0,"forks_count":35,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-29T20:06:58.979Z","etag":null,"topics":["android","diagonal","diagonal-imageview","diagonalimage","diagonalimageview","diagonalview","imageview"],"latest_commit_sha":null,"homepage":null,"language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/santalu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-08-09T05:57:57.000Z","updated_at":"2024-11-14T00:08:37.000Z","dependencies_parsed_at":null,"dependency_job_id":"63e8a35a-d264-441a-89a9-04a4ddc465f4","html_url":"https://github.com/santalu/diagonal-imageview","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/santalu%2Fdiagonal-imageview","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/santalu%2Fdiagonal-imageview/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/santalu%2Fdiagonal-imageview/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/santalu%2Fdiagonal-imageview/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/santalu","download_url":"https://codeload.github.com/santalu/diagonal-imageview/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247399877,"owners_count":20932876,"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":["android","diagonal","diagonal-imageview","diagonalimage","diagonalimageview","diagonalview","imageview"],"created_at":"2025-01-21T01:16:16.738Z","updated_at":"2025-04-05T21:08:50.230Z","avatar_url":"https://github.com/santalu.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Diagonal ImageView\n\n[![](https://jitpack.io/v/santalu/diagonal-imageview.svg)](https://jitpack.io/#santalu/diagonal-imageview) [![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-Diagonal%20ImageView-brightgreen.svg?style=flat)](https://android-arsenal.com/details/1/6040) [![](https://img.shields.io/badge/AndroidWeekly-%23278-blue.svg)](http://androidweekly.net/issues/issue-278) [![Build Status](https://travis-ci.org/santalu/diagonal-imageview.svg?branch=master)](https://travis-ci.org/santalu/diagonal-imageview)\n\nA simple imageview which allows you to create diagonal cut views easily\n\n## Samples\n\n\u003ctable \u003e\n  \u003ctr\u003e\n    \u003ctd align=\"left\"\u003e\u003cimg src=\"https://github.com/santalu/diagonal-imageview/blob/master/media/rv.webp\"/\u003e\u003c/td\u003e\n    \u003ctd align=\"right\"\u003e\u003cimg src=\"https://github.com/santalu/diagonal-imageview/blob/master/media/cv.webp\"/\u003e\u003c/td\u003e\n    \u003ctd align=\"left\"\u003e\u003cimg src=\"https://github.com/santalu/diagonal-imageview/blob/master/media/gl.webp\"/\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\n## Usage\n\n### Gradle\n```\nallprojects {\n  repositories {\n    maven { url 'https://jitpack.io' }\n  }\n}\n```\n```\ndependencies {\n  implementation 'com.github.santalu:diagonal-imageview:1.1.1'\n}\n```\n\n### XML\n```xml\n\u003ccom.santalu.diagonalimageview.DiagonalImageView\n    android:id=\"@+id/image\"\n    android:layout_width=\"120dp\"\n    android:layout_height=\"120dp\"\n    android:scaleType=\"centerCrop\"\n    android:src=\"@drawable/demo\"\n    app:di_borderColor=\"@color/colorAccent\"\n    app:di_borderEnabled=\"true\"\n    app:di_borderSize=\"8dp\"\n    app:di_distance=\"56dp\"\n    app:di_end=\"left\"\n    app:di_start=\"bottom\"/\u003e\n```\n\n## Attributes\n\n| Name              | Value |\n| -------------     | -----:|\n| di_start          | top, right, bottom, left |\n| di_end            | top, right, bottom, left |\n| di_distance       | dimen |\n| di_borderSize     | dimen |\n| di_borderColor    | color |\n| di_borderEnabled  | true, false |\n\n## Notes\n\n* Set start `NONE` to disable masking\n* After changing attributes call `invalidate()` or `postInvalidate()` to immediately apply changes\n\n## License\n```\nCopyright 2017 Fatih Santalu\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\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsantalu%2Fdiagonal-imageview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsantalu%2Fdiagonal-imageview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsantalu%2Fdiagonal-imageview/lists"}