{"id":13642926,"url":"https://github.com/xiepeijie/SwipeCardView","last_synced_at":"2025-04-20T21:32:06.436Z","repository":{"id":186453039,"uuid":"52331788","full_name":"xiepeijie/SwipeCardView","owner":"xiepeijie","description":"一个带渐变层叠动画的左右滑动效果","archived":false,"fork":false,"pushed_at":"2017-11-07T14:35:35.000Z","size":41392,"stargazers_count":1461,"open_issues_count":19,"forks_count":282,"subscribers_count":38,"default_branch":"master","last_synced_at":"2024-11-05T16:12:26.028Z","etag":null,"topics":["android","swipecard","swipeview"],"latest_commit_sha":null,"homepage":"","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/xiepeijie.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,"governance":null}},"created_at":"2016-02-23T05:06:06.000Z","updated_at":"2024-10-04T08:25:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"83286bc0-9932-45b8-ae9f-2e09c7b1f4a0","html_url":"https://github.com/xiepeijie/SwipeCardView","commit_stats":null,"previous_names":["xiepeijie/swipecardview"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xiepeijie%2FSwipeCardView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xiepeijie%2FSwipeCardView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xiepeijie%2FSwipeCardView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xiepeijie%2FSwipeCardView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xiepeijie","download_url":"https://codeload.github.com/xiepeijie/SwipeCardView/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223839146,"owners_count":17211880,"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","swipecard","swipeview"],"created_at":"2024-08-02T01:01:38.150Z","updated_at":"2024-11-09T14:31:07.984Z","avatar_url":"https://github.com/xiepeijie.png","language":"Java","funding_links":[],"categories":["Card","Java"],"sub_categories":[],"readme":"# SwipeCardView\nSwipeCardView是基于Diolor的[Swipecards](https://github.com/Diolor/Swipecards)控件改进实现，SwipeCardView是一个优雅的刷脸控件，滑动刷脸伴随渐变层叠动画，带来前所未有的滑动刷脸体验。  \n\nthanks Diolor [Swipecards](https://github.com/Diolor/Swipecards)  \n\n## Screenshot\n![screen](https://github.com/xiepeijie/SwipeCardView/blob/master/ezgif.com.gif)\n\n## Relative Project\n[SwipeAdapterView](https://github.com/xiepeijie/SwipeAdapterView)\n\n## Usage\n### XML：\n```\n\u003ccom.lorentzos.flingswipe.SwipeFlingAdapterView\n    android:id=\"@+id/swipe_view\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"match_parent\"\n    swipe:min_adapter_stack=\"4\"\n    swipe:max_visible=\"4\"\n    swipe:y_offset_step=\"28dp\"/\u003e\n```\n### Java Code：\n```\nswipeView = (SwipeFlingAdapterView) findViewById(R.id.swipe_view);\n    swipeView.setIsNeedSwipe(true);// 是否开启swipe滑动效果，当不调用此方法设置时，默认开启。\n    swipeView.setFlingListener(this);\n    swipeView.setOnItemClickListener(this);\n```\n**onFlingListener**\n```\n@Override\npublic void removeFirstObjectInAdapter() {\n    adapter.remove(0);\n}\n\n@Override\npublic void onLeftCardExit(Object dataObject) {\n    // to do something\n}\n\n@Override\npublic void onRightCardExit(Object dataObject) {\n    // to do something\n}\n\n@Override\npublic void onAdapterAboutToEmpty(int itemsInAdapter) {\n    if (itemsInAdapter == 3) {\n        loadData();\n    }\n}\n```\n**Click to swipe**\n\n```\n@Override\npublic void onClick(View v) {\n    // swipe left\n    swipeView.swipeLeft();\n    // swipe right\n    //swipeView.swipeRight();\n}\n```\n\n# About me\n微博：[@萧雾宇](http://weibo.com/payge)  \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxiepeijie%2FSwipeCardView","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxiepeijie%2FSwipeCardView","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxiepeijie%2FSwipeCardView/lists"}