{"id":13989557,"url":"https://github.com/wangjiegulu/WaveCompat","last_synced_at":"2025-07-22T11:30:42.580Z","repository":{"id":32906130,"uuid":"36500979","full_name":"wangjiegulu/WaveCompat","owner":"wangjiegulu","description":"Wave effect of activity animation","archived":false,"fork":false,"pushed_at":"2015-06-14T10:42:37.000Z","size":891,"stargazers_count":348,"open_issues_count":5,"forks_count":81,"subscribers_count":15,"default_branch":"master","last_synced_at":"2024-11-29T08:39:16.206Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","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/wangjiegulu.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}},"created_at":"2015-05-29T11:45:09.000Z","updated_at":"2023-12-22T06:00:37.000Z","dependencies_parsed_at":"2022-07-22T04:47:53.509Z","dependency_job_id":null,"html_url":"https://github.com/wangjiegulu/WaveCompat","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/wangjiegulu/WaveCompat","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wangjiegulu%2FWaveCompat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wangjiegulu%2FWaveCompat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wangjiegulu%2FWaveCompat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wangjiegulu%2FWaveCompat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wangjiegulu","download_url":"https://codeload.github.com/wangjiegulu/WaveCompat/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wangjiegulu%2FWaveCompat/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266483458,"owners_count":23936346,"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","status":"online","status_checked_at":"2025-07-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-08-09T13:01:45.056Z","updated_at":"2025-07-22T11:30:42.263Z","avatar_url":"https://github.com/wangjiegulu.png","language":"Java","funding_links":[],"categories":["Java","Libs"],"sub_categories":["\u003cA NAME=\"Animations\"\u003e\u003c/A\u003eAnimations"],"readme":"# WaveCompat\nWave effect of activity animation\n\n\u003cimg src='screenshot/wave_compat_a.gif' height='500px'/\u003e\n\u003cimg src='screenshot/wave_compat_b.gif' height='500px'/\u003e\n\n# How to use\n### 1. Bind wave touch helper to a view which will start an activity when it clicked:\n```java\nWaveTouchHelper.bindWaveTouchHelper(view, onWaveTouchHelperListener);\n```\n### 2. Override onWaveTouchUp() method in `OnWaveTouchHelperListener`:\n```java\n@Override\npublic void onWaveTouchUp(View view, Point locationInView, Point locationInScreen) {\n    WaveCompat.startWaveFilter(this,\n        new WaveDrawable()\n            .setColor(0xff8B2252)\n            .setTouchPoint(locationInScreen),\n        generateIntent(0xff8B2252));\n}\n    \nprivate Intent generateIntent(int color) {\n    Intent intent = new Intent(context, SecondWareTestActivity.class);\n    intent.putExtra(WaveCompat.IntentKey.BACKGROUND_COLOR, color);\n    return intent;\n}\n```\n### 3. Default Initial transition of the TO activity(Optional)\n```java\ngetWindow().setBackgroundDrawable(new ColorDrawable((backgroundFromColor = getIntent().getIntExtra(WaveCompat.IntentKey.BACKGROUND_COLOR, 0xff8B7D6B))));\nWaveCompat.transitionInitial(this, ABTextUtil.dip2px(context, 80), backgroundFromColor, Color.GRAY);\n```\n\nLicense\n=======\n\n    Copyright 2015 Wang Jie\n\n    Licensed under the Apache License, Version 2.0 (the \"License\");\n    you may not use this file except in compliance with the License.\n    You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n    Unless required by applicable law or agreed to in writing, software\n    distributed under the License is distributed on an \"AS IS\" BASIS,\n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n    See the License for the specific language governing permissions and\n    limitations under the License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwangjiegulu%2FWaveCompat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwangjiegulu%2FWaveCompat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwangjiegulu%2FWaveCompat/lists"}