{"id":18663794,"url":"https://github.com/lopspower/gradientview","last_synced_at":"2025-07-12T13:33:41.941Z","repository":{"id":144134688,"uuid":"203173490","full_name":"lopspower/GradientView","owner":"lopspower","description":"Create gradient view in Android in the simplest way possible 🌈","archived":false,"fork":false,"pushed_at":"2020-03-06T09:19:42.000Z","size":8122,"stargazers_count":198,"open_issues_count":0,"forks_count":17,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-06-20T14:18:09.998Z","etag":null,"topics":["android","gradientview"],"latest_commit_sha":null,"homepage":"","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/lopspower.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":"lopspower","patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2019-08-19T12:59:11.000Z","updated_at":"2025-05-20T18:45:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"ec2bc6bf-b46f-4a5f-a63b-09400e177e9d","html_url":"https://github.com/lopspower/GradientView","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lopspower/GradientView","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lopspower%2FGradientView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lopspower%2FGradientView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lopspower%2FGradientView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lopspower%2FGradientView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lopspower","download_url":"https://codeload.github.com/lopspower/GradientView/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lopspower%2FGradientView/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265002535,"owners_count":23696075,"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","gradientview"],"created_at":"2024-11-07T08:19:49.232Z","updated_at":"2025-07-12T13:33:41.922Z","avatar_url":"https://github.com/lopspower.png","language":"Kotlin","funding_links":["https://github.com/sponsors/lopspower"],"categories":[],"sub_categories":[],"readme":"GradientView 🌈\n=================\n\n\u003cimg src=\"/preview/preview.gif\" alt=\"sample\" title=\"sample\" width=\"300\" height=\"480,62\" align=\"right\" vspace=\"52\" /\u003e\n\n[![Platform](https://img.shields.io/badge/platform-android-green.svg)](http://developer.android.com/index.html)\n[![API](https://img.shields.io/badge/API-14%2B-brightgreen.svg?style=flat)](https://android-arsenal.com/api?level=14)\n[![Download](https://api.bintray.com/packages/lopspower/maven/com.mikhaellopez:gradientview/images/download.svg?version=1.1.0)](https://bintray.com/lopspower/maven/com.mikhaellopez:gradientview/1.1.0/link)\n\u003cbr\u003e\n[![Twitter](https://img.shields.io/badge/Twitter-@LopezMikhael-blue.svg?style=flat)](http://twitter.com/lopezmikhael)\n[![Codacy Badge](https://api.codacy.com/project/badge/Grade/43b87a9cabc84f51be0f6b72bb13b646)](https://app.codacy.com/app/lopspower/GradientView?utm_source=github.com\u0026utm_medium=referral\u0026utm_content=lopspower/GradientView\u0026utm_campaign=Badge_Grade_Dashboard)\n\nThis is an Android project allowing to realize a gradient View in the simplest way possible. Finish the gradient shapes of all colors in your projects.\n\n\u003ca href=\"https://play.google.com/store/apps/details?id=com.mikhaellopez.lopspower\"\u003e\n  \u003cimg alt=\"Android app on Google Play\" src=\"https://developer.android.com/images/brand/en_app_rgb_wo_45.png\" /\u003e\n\u003c/a\u003e\n\nUSAGE\n-----\n\nTo make a gradient View add GradientView in your layout XML and add GradientView library in your project or you can also grab it via Gradle:\n\n```groovy\nimplementation 'com.mikhaellopez:gradientview:1.1.0'\n```\n\nXML\n-----\n\n```xml    \n\u003ccom.mikhaellopez.gradientview.GradientView\n    android:id=\"@+id/gradientView\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"match_parent\"\n    app:gv_direction=\"left_to_right\"\n    app:gv_end=\"#d32e2e\"\n    app:gv_start=\"#3f51b5\" /\u003e\n```\n\nYou must use the following properties in your XML to change your CircleView.\n\n| Properties           | Type                                                         | Default       |\n| -------------------- | ------------------------------------------------------------ | ------------- |\n| `app:gv_start`       | color                                                        | WHITE         |\n| `app:gv_alpha_start` | float (from 0.0 to 1.0)                                      | 1f            |\n| `app:gv_end`         | color                                                        | WHITE         |\n| `app:gv_alpha_end`   | float (from 0.0 to 1.0)                                      | 1f            |\n| `app:gv_direction`   | left_to_right, right_to_left, top_to_bottom or bottom_to_top | left_to_right |\n\nKOTLIN\n-----\n\n```kotlin\nval gradientView = findViewById\u003cGradientView\u003e(R.id.gradientView)\ngradientView.apply {\n    // Set Color Start\n    start = Color.RED\n    alphaStart = 0.5f\n    \n    // Set Color End\n    end = Color.BLUE\n    alphaEnd = 0.5f\n    \n    // Set Gradient Direction\n    direction = GradientView.GradientDirection.TOP_TO_BOTTOM\n}\n```\n\nJAVA\n-----\n\n```java\nGradientView gradientView = findViewById(R.id.gradientView);\n\n// Set Color Start\ngradientView.setStart(Color.RED);\ngradientView.setAlphaStart(0.5f);\n\n// Set Color End\ngradientView.setEnd(Color.RED);\ngradientView.setAlphaEnd(0.5f);\n\n// Set Gradient Direction\ngradientView.setDirection(GradientView.GradientDirection.TOP_TO_BOTTOM);\n```\n\nSUPPORT ❤️\n-----\n\nFind this library useful? Support it by joining [**stargazers**](https://github.com/lopspower/GradientView/stargazers) for this repository ⭐️\n\u003cbr/\u003e\nAnd [**follow me**](https://github.com/lopspower?tab=followers) for my next creations 👍\n\nLICENCE\n-----\n\nGradientView by [Lopez Mikhael](http://mikhaellopez.com/) is licensed under a [Apache License 2.0](http://www.apache.org/licenses/LICENSE-2.0).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flopspower%2Fgradientview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flopspower%2Fgradientview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flopspower%2Fgradientview/lists"}