{"id":13642865,"url":"https://github.com/youngkaaa/RecyclerAnimations","last_synced_at":"2025-04-20T21:31:44.077Z","repository":{"id":137072357,"uuid":"69929201","full_name":"youngkaaa/RecyclerAnimations","owner":"youngkaaa","description":"Recycler's Animations，when items slide in!","archived":false,"fork":false,"pushed_at":"2016-10-05T05:33:30.000Z","size":1330,"stargazers_count":55,"open_issues_count":1,"forks_count":8,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-09T14:39:23.210Z","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/youngkaaa.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}},"created_at":"2016-10-04T02:45:11.000Z","updated_at":"2022-03-20T19:29:33.000Z","dependencies_parsed_at":"2024-01-14T11:09:42.429Z","dependency_job_id":"7470ec6c-6c3f-43b1-b375-b241c9b97b36","html_url":"https://github.com/youngkaaa/RecyclerAnimations","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/youngkaaa%2FRecyclerAnimations","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/youngkaaa%2FRecyclerAnimations/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/youngkaaa%2FRecyclerAnimations/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/youngkaaa%2FRecyclerAnimations/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/youngkaaa","download_url":"https://codeload.github.com/youngkaaa/RecyclerAnimations/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249965542,"owners_count":21352922,"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:01:37.426Z","updated_at":"2025-04-20T21:31:43.410Z","avatar_url":"https://github.com/youngkaaa.png","language":"Java","funding_links":[],"categories":["RecyclerView"],"sub_categories":[],"readme":"# RecyclerAnimations\nRecycler's Animations，when items slide in!\n\n \n 你可以继承library中的`BaseRecyclerAdapter`，然后实现所需方法就可以实现上滑下滑加载动画了\n \n 就像这样：\n \n ```\npublic class MainRecyclerAdapter2 extends BaseRecyclerAdapter\u003cString\u003e {\n    public MainRecyclerAdapter2(Context context, List\u003cString\u003e list) {\n        super(context, list);\n    }\n    @Override\n    public void bottomEnterAnim(RecyclerView.ViewHolder viewHolder) {\n        AnimHelper.BottomInDelayAnim(viewHolder,getContext(),300);\n    }\n    @Override\n    public void topEnterAnim(RecyclerView.ViewHolder viewHolder) {\n        AnimHelper.BottomInDelayAnim(viewHolder,getContext(),300);\n    }\n    @Override\n    public int getRootLayoutId() {\n        return R.layout.recycler_item;\n    }\n    @Override\n    public void onBind(BaseRecyclerAdapter\u003cString\u003e.BaseViewHolder viewHolder, int position) {\n        TextView textView=viewHolder.getViewById(R.id.textViewRecyclerItem);\n        textView.setText((String)getListItem(position));\n    }\n}\n ```\n \n你只需要在`bottomEnterAnim()`和`topEnterAnim()`方法中实现你的自定义动画就行。\n当然，我还内置了十多种现成的动画供你使用，具体封装在`AnimHelper`类中，你只需要拿来用就行了，适合于快速开发的需要！\n\n下面贴一部分内置的动画效果：\n\n运行图：\n\n![](https://github.com/youngkaaa/RecyclerAnimations/blob/master/app/screens/slidelayout_animation_02.gif)\n\n![](https://github.com/youngkaaa/RecyclerAnimations/blob/master/app/screens/slidelayout_animation_03.gif)\n\n![](https://github.com/youngkaaa/RecyclerAnimations/blob/master/app/screens/slidelayout_animation_04.gif)\n\n![](https://github.com/youngkaaa/RecyclerAnimations/blob/master/app/screens/slidelayout_animation_05.gif)\n\n![](https://github.com/youngkaaa/RecyclerAnimations/blob/master/app/screens/slidelayout_animation_06.gif)\n\n由于我的电脑比较卡，所以动画看起来会有点不流畅，请谅解。\n\n具体使用方法即封装过程可以看我的博客： [戳这里](http://youngkaaa.cn/2016/10/04/2016-10-4%20RecyclerView%20Slide%20Animations)\n\n如果你感觉该仓库或者对应博客对你有用的话就给个`star`以示鼓励吧。谢谢\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyoungkaaa%2FRecyclerAnimations","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyoungkaaa%2FRecyclerAnimations","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyoungkaaa%2FRecyclerAnimations/lists"}