{"id":17047191,"url":"https://github.com/dynamitechetan/flowing-gradient","last_synced_at":"2025-04-05T03:08:58.093Z","repository":{"id":86924907,"uuid":"63526629","full_name":"dynamitechetan/Flowing-Gradient","owner":"dynamitechetan","description":"Android Library to make a flowing gradient effect, similar to that used in Instagram Android login screen","archived":false,"fork":false,"pushed_at":"2019-05-23T14:40:16.000Z","size":225,"stargazers_count":705,"open_issues_count":5,"forks_count":89,"subscribers_count":15,"default_branch":"master","last_synced_at":"2025-03-29T02:04:56.136Z","etag":null,"topics":["android","android-library","colors","gradient","gradient-animations","instagram","transition"],"latest_commit_sha":null,"homepage":"","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/dynamitechetan.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-07-17T10:36:12.000Z","updated_at":"2024-11-02T04:40:36.000Z","dependencies_parsed_at":"2023-05-29T20:15:31.700Z","dependency_job_id":null,"html_url":"https://github.com/dynamitechetan/Flowing-Gradient","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dynamitechetan%2FFlowing-Gradient","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dynamitechetan%2FFlowing-Gradient/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dynamitechetan%2FFlowing-Gradient/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dynamitechetan%2FFlowing-Gradient/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dynamitechetan","download_url":"https://codeload.github.com/dynamitechetan/Flowing-Gradient/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247280270,"owners_count":20912967,"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","android-library","colors","gradient","gradient-animations","instagram","transition"],"created_at":"2024-10-14T09:48:46.995Z","updated_at":"2025-04-05T03:08:58.068Z","avatar_url":"https://github.com/dynamitechetan.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Flowing Gradient Library\n[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-Flowing--Gradient-green.svg?style=true)](https://android-arsenal.com/details/1/3984)\n[![License](https://img.shields.io/badge/License-Apache%202-blue.svg)](http://www.apache.org/licenses/LICENSE-2.0.html)\n[![API](https://img.shields.io/badge/API-12+-blue.svg)](https://github.com/dynamitechetan/Flowing-Gradient) Android ver 3.1+\n![Screenshot](screenshots/Screenshot_20160720-215934.png)\n## How to use\nAdd these lines in your build.gradle files:\n##### In your Project Level build.gradle\n```gradle\nrepositories {\n        jcenter()\n}\n```\n##### In your App Level build.gradle\n\n```gradle\ndependencies {\n    compile 'com.dynamitechetan.flowinggradient:flowinggradient:1.1'\n}\n```\n\n# Using Maven\n```maven\n\u003cdependency\u003e\n\u003cgroupId\u003ecom.dynamitechetan.flowinggradient\u003c/groupId\u003e \n\u003cartifactId\u003eflowinggradient\u003c/artifactId\u003e\n\u003cversion\u003e1.1\u003c/version\u003e\n\u003ctype\u003epom\u003c/type\u003e\n\u003c/dependency\u003e\n```\n## BASIC USAGE\n```xml\n   \u003ccom.dynamitechetan.flowinggradient.FlowingGradient\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"match_parent\"\n        /\u003e\n```\n\nTo set your own gradients and transition duration using XML, you must add this line in your xml file in the first component:\n\n```xml\n\u003cRelativeLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    xmlns:gradient=\"http://schemas.android.com/apk/res-auto\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"match_parent\"\n    \u003e\n\u003c/RelativeLayout\u003e\n```\n## Making your own Gradient Animations.\nMake a file like this and place it in drawable folder\n```xml\n\u003c?xml version=\"1.0\" encoding=\"UTF-8\"?\u003e\n\u003canimation-list xmlns:android=\"http://schemas.android.com/apk/res/android\"  android:id=\"@+id/selected\" android:oneshot=\"false\"\u003e\n    \u003c!-- The drawables used here can be solid colors, gradients, shapes, images, etc. --\u003e\n    \u003citem android:drawable=\"@drawable/one\" android:duration=\"4000\"  /\u003e\n    \u003citem android:drawable=\"@drawable/two\" android:duration=\"4000\" /\u003e\n    \u003citem android:drawable=\"@drawable/three\" android:duration=\"4000\" /\u003e\n    \u003citem android:drawable=\"@drawable/four\" android:duration=\"4000\" /\u003e\n\u003c/animation-list\u003e\n\n\u003c!--android:duration=\"4000\" is the duration till the gradient will be shown on the screen--\u003e\n```\nMaking a Gradient in Android\n```xml\n\u003c?xml version=\"1.0\" encoding=\"UTF-8\"?\u003e\n\u003cshape   xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:shape=\"rectangle\"\u003e\n    \u003cgradient\n        android:angle=\"45\"\n        android:endColor=\"#D38312\"\n        android:startColor=\"#FF6B6B\"\n        android:type=\"linear\" /\u003e\n    \u003ccorners\n        android:radius=\"0dp\"/\u003e\n\u003c/shape\u003e\n```\n\n## USING YOUR OWN ANIMATION GRADIENTS USING XML\n\n```xml\n  \u003ccom.dynamitechetan.flowinggradient.FlowingGradient\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"match_parent\"\n        gradient:transition_drawable=\"@drawable/trans\"\n        /\u003e\n```\n\n## SETTING TRANSITION DURATION USING XML\n```xml\n  \u003ccom.dynamitechetan.flowinggradient.FlowingGradient\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"match_parent\"\n        gradient:transition_duration = \"4000\"\n        /\u003e\n```\n\n# Using This Library in JAVA\n## BASIC USAGE\n\n```java\n  RelativeLayout rl = (RelativeLayout) findViewById(R.id.rl);\n  FlowingGradientClass grad = new FlowingGradientClass();\n                grad.setBackgroundResource(R.drawable.translate)\n                .onRelativeLayout(rl)\n                .setTransitionDuration(4000)\n                .start();\n```\n####You are requested to use the methods in this order or sometimes it can end up in a null pointer exception.\n```java\n.onReltiveLayout() and be replaced by .onImageView() or .onLinearLayout()  as per use.\n```\n\n## To set Alpha of the transition\n```java\n  RelativeLayout rl = (RelativeLayout) findViewById(R.id.rl);\n  FlowingGradientClass grad = new FlowingGradientClass();\n                grad.setBackgroundResource(R.drawable.translate)\n                .onRelativeLayout(rl)\n                .setTransitionDuration(4000)\n                .setAlpha(4)\n                .start();\n```\n\n## License\nCopyright (c) 2016 Chetan Kaushik\n\nLicensed under the [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0.html)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdynamitechetan%2Fflowing-gradient","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdynamitechetan%2Fflowing-gradient","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdynamitechetan%2Fflowing-gradient/lists"}