{"id":13642239,"url":"https://github.com/kakajika/SwipeAwayDialog","last_synced_at":"2025-04-20T16:31:07.411Z","repository":{"id":90682888,"uuid":"41481307","full_name":"kakajika/SwipeAwayDialog","owner":"kakajika","description":"DialogFragment swipeable away like Tinder UI.","archived":false,"fork":false,"pushed_at":"2018-11-23T08:07:11.000Z","size":2427,"stargazers_count":825,"open_issues_count":3,"forks_count":110,"subscribers_count":27,"default_branch":"master","last_synced_at":"2024-08-03T01:25:58.741Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kakajika.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,"roadmap":null,"authors":null}},"created_at":"2015-08-27T10:50:05.000Z","updated_at":"2024-03-04T14:51:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"15cc85de-f3a7-4ec9-ae4d-e601aad0593e","html_url":"https://github.com/kakajika/SwipeAwayDialog","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/kakajika%2FSwipeAwayDialog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kakajika%2FSwipeAwayDialog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kakajika%2FSwipeAwayDialog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kakajika%2FSwipeAwayDialog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kakajika","download_url":"https://codeload.github.com/kakajika/SwipeAwayDialog/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223832896,"owners_count":17210740,"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:28.899Z","updated_at":"2025-04-20T16:31:07.394Z","avatar_url":"https://github.com/kakajika.png","language":"Java","funding_links":[],"categories":["对话框"],"sub_categories":[],"readme":"# SwipeAwayDialog\n\n[![Platform](https://img.shields.io/badge/platform-android-green.svg)](http://developer.android.com/index.html)\n\u003cimg src=\"https://img.shields.io/badge/license-MIT-green.svg?style=flat\"\u003e\n[![API](https://img.shields.io/badge/API-12%2B-yellow.svg?style=flat)](https://android-arsenal.com/api?level=12)\n[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-SwipeAwayDialog-green.svg?style=true)](http://android-arsenal.com/details/1/3519)\n[![Build Status](https://travis-ci.org/kakajika/SwipeAwayDialog.svg?branch=master)](https://travis-ci.org/kakajika/SwipeAwayDialog)\n\nAndroid DialogFragment that enables Dialog to be swiped away to dismiss.  \nIt's extremely easy to make Tinder-like UI.\n\n![](https://raw.githubusercontent.com/wiki/kakajika/SwipeAwayDialog/images/octocats.gif)\n\n![](https://raw.githubusercontent.com/wiki/kakajika/SwipeAwayDialog/images/dialogs.gif)\n\n## Install\n\n```groovy\ndependencies {\n    compile 'com.labo.kaji:swipeawaydialog:0.1.1'\n}\n```\n\n## Usage\n\nJust extend `SwipeAwayDialogFragment` instead of `DialogFragment`.\n\n```java\npublic class ExampleDialogFragment extends SwipeAwayDialogFragment {\n    // Implement DialogFragment as usual.\n}\n```\n\nIf you want to handle swiped away event, implement `onSwipedAway`.  \nYou can prevent dismissing by returning true.\n\n```java\n@Override\npublic boolean onSwipedAway(boolean toRight) {\n    return false;\n}\n```\n\n## License\n\nMIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkakajika%2FSwipeAwayDialog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkakajika%2FSwipeAwayDialog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkakajika%2FSwipeAwayDialog/lists"}