{"id":13645357,"url":"https://github.com/zhangke3016/TranslationCompat","last_synced_at":"2025-04-21T14:30:35.263Z","repository":{"id":201884324,"uuid":"72984305","full_name":"zhangke3016/TranslationCompat","owner":"zhangke3016","description":"A transition animation compatible Library.","archived":false,"fork":false,"pushed_at":"2019-02-19T05:17:06.000Z","size":11749,"stargazers_count":287,"open_issues_count":2,"forks_count":40,"subscribers_count":9,"default_branch":"master","last_synced_at":"2024-11-09T18:42:13.655Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zhangke3016.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}},"created_at":"2016-11-06T10:45:48.000Z","updated_at":"2024-03-19T03:56:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"3cb4a443-0d46-49e5-b075-b25e3cf0ce67","html_url":"https://github.com/zhangke3016/TranslationCompat","commit_stats":null,"previous_names":["zhangke3016/translationcompat"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhangke3016%2FTranslationCompat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhangke3016%2FTranslationCompat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhangke3016%2FTranslationCompat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhangke3016%2FTranslationCompat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zhangke3016","download_url":"https://codeload.github.com/zhangke3016/TranslationCompat/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250070170,"owners_count":21369839,"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-08-02T01:02:33.965Z","updated_at":"2025-04-21T14:30:35.249Z","avatar_url":"https://github.com/zhangke3016.png","language":"Java","funding_links":[],"categories":["页面切换"],"sub_categories":[],"readme":"# 页面过渡动画兼容库\n\u003eA transition animation compatible Library.\n\n\u003e兼容Android5.0之后转场动画至Android4.0。\n\n\n\n# Preview\n\n\n![MaterialLogin](gif/screen1.gif)\n\n**原项目地址：[MaterialLogin](https://github.com/fanrunqi/MaterialLogin)\n将动画效果兼容至Android4.0**\n\n--\n![Translation](gif/screen3.gif)\n![Translation](gif/screen2.gif)\n---\n# java\n\n```\n//参数一：当前Activity\n//参数二：跳转意图\n//参数三：当前页面跳转至下一页面的View\n//参数四：下一页面关联的View id\nTransitionController.getInstance().startActivity(this,new Intent(this, RegisterActivity.class),fab,R.id.fab);\n\n//跳转后页面调用：\nTransitionController.getInstance().show(this,getIntent());\n可在show方法调用之前设置监听：\n TransitionController.getInstance().setEnterListener(new TransitionCustomListener() {\n            @Override\n            public void onTransitionStart(Animator animator) {\n            }\n            @Override\n            public void onTransitionEnd(Animator animator) {\n            }\n            @Override\n            public void onTransitionCancel(Animator animator) {\n            }\n        });\n\n//界面退出的时候调用\nTransitionController.getInstance().exitActivity(PageDetailActivity.this);\n\n//增加界面圆形转换动画 \n// 用法及参数和ViewAnimationUtils一致\nViewAnimationCompatUtils.createCircularReveal(cvAdd, cvAdd.getWidth()/2,0, fab.getWidth() / 2, cvAdd.getHeight());\n\n//增加界面矩形转换动画 \nAnimator mAnimator = ViewAnimationCompatUtils.createRectReveal( nsv, 0, nsv.getHeight(),ViewAnimationCompatUtils.RECT_TOP);\n\n```\n### About me\n\nAn Android Developer in ZhengZhou.\n\n【[**我的简书地址**](http://www.jianshu.com/users/3c751e06dc32/latest_articles)】\n\n【[**我的CSDN地址**](http://blog.csdn.net/zhangke3016)】\n\n\n### Thanks\n\n\n[MaterialLogin](https://github.com/fanrunqi/MaterialLogin)\n\n[Android 中的转场动画及兼容处理](http://blog.csdn.net/wl9739/article/details/52833668)\n\n[CanEffect](https://github.com/canyinghao/CanEffect)\n\n### License\n\nCopyright  2016  zhangke\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 \nhttp://www.apache.org/licenses/LICENSE-2.0\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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzhangke3016%2FTranslationCompat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzhangke3016%2FTranslationCompat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzhangke3016%2FTranslationCompat/lists"}