{"id":13645008,"url":"https://github.com/GeeJoe/EdgeSlidingBack","last_synced_at":"2025-04-21T11:32:28.408Z","repository":{"id":200697577,"uuid":"93238574","full_name":"GeeJoe/EdgeSlidingBack","owner":"GeeJoe","description":"An Android library help app with edge sliding back like ios","archived":false,"fork":false,"pushed_at":"2017-11-20T06:46:00.000Z","size":864,"stargazers_count":140,"open_issues_count":0,"forks_count":15,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-11-09T17:42:50.960Z","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/GeeJoe.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":"2017-06-03T09:35:25.000Z","updated_at":"2024-02-17T15:51:59.000Z","dependencies_parsed_at":null,"dependency_job_id":"ba7eb483-de41-42ca-b5aa-093d75ec2b02","html_url":"https://github.com/GeeJoe/EdgeSlidingBack","commit_stats":null,"previous_names":["geejoe/edgeslidingback"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GeeJoe%2FEdgeSlidingBack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GeeJoe%2FEdgeSlidingBack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GeeJoe%2FEdgeSlidingBack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GeeJoe%2FEdgeSlidingBack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GeeJoe","download_url":"https://codeload.github.com/GeeJoe/EdgeSlidingBack/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250048010,"owners_count":21366160,"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:23.603Z","updated_at":"2025-04-21T11:32:28.340Z","avatar_url":"https://github.com/GeeJoe.png","language":"Java","readme":"# EdgeSlidingBack\nAn Android library help app with edge sliding back like ios\n\n[ ![Download](https://api.bintray.com/packages/geejoe/maven/edgeslidingback/images/download.svg) ](https://bintray.com/geejoe/maven/edgeslidingback/_latestVersion)\n\n## 简介\n\n这是一个仿ios边缘右滑返回的库，效果见动图：\n\n### 普通Activity，内有一个TextView\n![](https://github.com/GeeJoe/EdgeSlidingBack/raw/master/gif/2017-06-04_20_09_56.gif)\n\n### 含有ListView和ViewPager的Activity\n![](https://github.com/GeeJoe/EdgeSlidingBack/raw/master/gif/2017-06-04_20_28_44.gif)\n\n## 依赖\n\n本项目已同步到Jcenter,可直接引用依赖：\n```Java\ncompile 'com.geejoe:edgeslidingback:1.0.7'\n```\n\n## 使用方法\n\n所有需要使用滑动返回的Activity须继承自EdgeSlidingBackActivity\n需要关闭右滑返回可以在Activity的super.onCreate()方法之前执行setEnableSlidingBack(false);\n\n另需要设置主题@style/AppTheme.Slide以便滑动时使下层Activity可见\n此外还提供了无ActionBar的主题@style/AppTheme.Slide.NoActionBar:\n\n例，如下设置：不需要使用滑动返回的Activity（如MainActivity）,则单独设置主题\n\n```xml\n\u003capplication\n        android:allowBackup=\"true\"\n        android:icon=\"@mipmap/ic_launcher\"\n        android:label=\"@string/app_name\"\n        android:supportsRtl=\"true\"\n        android:theme=\"@style/AppTheme.Slide\"\u003e\n        \u003cactivity android:name=\".MainActivity\"\n            android:theme=\"@style/AppTheme\"\u003e\n            \u003cintent-filter\u003e\n                \u003caction android:name=\"android.intent.action.MAIN\" /\u003e\n\n                \u003ccategory android:name=\"android.intent.category.LAUNCHER\" /\u003e\n            \u003c/intent-filter\u003e\n        \u003c/activity\u003e\n    \u003c/application\u003e\n```\n\n#### 重写Activity的onSlidingBack()方法,处理滑动返回销毁Activity前的工作，例如需要setResult、释放资源等工作\n","funding_links":[],"categories":["滑动返回"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FGeeJoe%2FEdgeSlidingBack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FGeeJoe%2FEdgeSlidingBack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FGeeJoe%2FEdgeSlidingBack/lists"}