{"id":18269779,"url":"https://github.com/skyfe79/androidgradientimageview","last_synced_at":"2025-10-23T17:22:08.333Z","repository":{"id":137746174,"uuid":"61021307","full_name":"skyfe79/AndroidGradientImageView","owner":"skyfe79","description":"AndroidGradientImageView is a simple imageview which overlays gradient on its content.","archived":false,"fork":false,"pushed_at":"2019-11-06T12:28:51.000Z","size":2051,"stargazers_count":219,"open_issues_count":2,"forks_count":35,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-03-20T20:18:19.042Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/skyfe79.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":"2016-06-13T08:41:46.000Z","updated_at":"2025-03-07T00:10:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"3dc2704d-4549-4e10-b175-c123ba688e8e","html_url":"https://github.com/skyfe79/AndroidGradientImageView","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skyfe79%2FAndroidGradientImageView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skyfe79%2FAndroidGradientImageView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skyfe79%2FAndroidGradientImageView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skyfe79%2FAndroidGradientImageView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/skyfe79","download_url":"https://codeload.github.com/skyfe79/AndroidGradientImageView/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247266476,"owners_count":20910831,"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":[],"created_at":"2024-11-05T11:37:09.508Z","updated_at":"2025-10-23T17:22:03.297Z","avatar_url":"https://github.com/skyfe79.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Platform](https://img.shields.io/badge/platform-android-green.svg)](http://developer.android.com/index.html)\n[![API](https://img.shields.io/badge/API-8%2B-brightgreen.svg?style=flat)](https://android-arsenal.com/api?level=8)\n[![License](https://img.shields.io/badge/License-MIT-blue.svg?style=flat)](http://opensource.org/licenses/MIT)\n\n# AndroidGradientImageView\n\nAndroidGradientImageView is a simple imageView which overlays gradient on its content like below:\n\n| ![](art/screen.png)  | ![](art/gradient-animation.gif) |\n|:-:|:-:|\n\n## Setup Gradle\n\n```groovy\ndependencies {\n    //...\n    implementation 'kr.pe.burt.android.lib:androidgradientimageview:1.0.0'\n}\n```\n\n## Attributes\n\nAndroidGradientImageView is a simple imageview. It just provides a few attributes for gradient effect.\n\n * giv_x\n \t* is left position of gradient \n \t* is float value\n \t* you can set value from 0.0 to 1.0 \n * giv_y\n\t* is top position of gradient \n \t* is float value\n \t* you can set value from 0.0 to 1.0 \n * giv_width\n\t* is gradient's width\n \t* is float value\n \t* you can set value from 0.0 to 1.0 \n * giv_height\n\t* is gradient's height\n \t* is float value\n \t* you can set value from 0.0 to 1.0 \n * giv_rotate\n\t* is rotation degree of gradient\n \t* is float value\n \t* you can set value from 0.0 to 360.0\n * giv_startColor\n\t* is start color of gradient\n \t* is color value\n \t* you can set value as `#FFFFFF` or `@color/what_color`\n * giv_endColor\n\t* is end color of gradient\n \t* is color value\n \t* you can set value as `#FFFFFF` or `@color/what_color`\n * giv_middleColor\n\t* is middle color of gradient\n \t* is color value\n \t* you can set value as `#FFFFFF` or `@color/what_color`\n * giv_startOffset\n\t* is offset of start color of gradient\n \t* is float value\n \t* you can set value from 0.0 to 1.0\n * giv_middleOffset\n\t* is offset of middle color of gradient\n \t* is float value\n \t* you can set value from 0.0 to 1.0\n * giv_endOffset\n\t* is offset of end color of gradient\n \t* is float value\n \t* you can set value from 0.0 to 1.0\n * giv_alpha\n\t* is alpha of the gradient\n\t* is float value\n\t* you can set value from 0.0 to 1.0\t\n\n## Examples\n\n```xml\n\u003ckr.pe.burt.android.lib.androidgradientimageview.AndroidGradientImageView\n        android:src=\"@mipmap/ic_launcher\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"match_parent\"\n        android:scaleType=\"fitXY\"\n        app:giv_x=\"0.0\"\n        app:giv_y=\"0.0\"\n        app:giv_rotate=\"45.0\"\n        app:giv_startColor=\"#8F00\"\n        app:giv_startOffset=\"0.3\"\n        app:giv_middleColor=\"#80F0\"\n        app:giv_middleOffset=\"0.6\"\n        app:giv_endColor=\"#800F\"\n        app:giv_endOffset=\"0.8\"\n        /\u003e\n```\n\nor you can set attributes just you need\n\n```xml\n\u003ckr.pe.burt.android.lib.androidgradientimageview.AndroidGradientImageView\n        android:src=\"@drawable/agassi\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"match_parent\"\n        android:scaleType=\"fitXY\"\n        app:giv_rotate=\"45.0\"\n        app:giv_startOffset=\"0.3\"\n        app:giv_endColor=\"#c000\"\n        app:giv_endOffset=\"0.6\"\n        /\u003e\n```\n\n## MIT License\n\nThe MIT License (MIT)\n\nCopyright (c) 2016 Sungcheol Kim, [https://github.com/skyfe79/AndroidGradientImageView](https://github.com/skyfe79/AndroidGradientImageView)\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskyfe79%2Fandroidgradientimageview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fskyfe79%2Fandroidgradientimageview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskyfe79%2Fandroidgradientimageview/lists"}