{"id":13396000,"url":"https://github.com/ikew0ng/SwipeBackLayout","last_synced_at":"2025-03-13T22:31:24.960Z","repository":{"id":10247387,"uuid":"12353678","full_name":"ikew0ng/SwipeBackLayout","owner":"ikew0ng","description":"An Android library that help you to build app with swipe back gesture.","archived":false,"fork":false,"pushed_at":"2019-09-18T06:44:18.000Z","size":2934,"stargazers_count":6123,"open_issues_count":121,"forks_count":1404,"subscribers_count":221,"default_branch":"master","last_synced_at":"2024-10-29T15:34:35.409Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ikew0ng.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}},"created_at":"2013-08-25T03:36:12.000Z","updated_at":"2024-10-29T02:21:17.000Z","dependencies_parsed_at":"2022-07-13T09:10:30.620Z","dependency_job_id":null,"html_url":"https://github.com/ikew0ng/SwipeBackLayout","commit_stats":null,"previous_names":["issacw0ng/swipebacklayout"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ikew0ng%2FSwipeBackLayout","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ikew0ng%2FSwipeBackLayout/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ikew0ng%2FSwipeBackLayout/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ikew0ng%2FSwipeBackLayout/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ikew0ng","download_url":"https://codeload.github.com/ikew0ng/SwipeBackLayout/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243493585,"owners_count":20299681,"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-07-30T18:00:37.373Z","updated_at":"2025-03-13T22:31:24.590Z","avatar_url":"https://github.com/ikew0ng.png","language":"Java","readme":"SwipeBackLayout\n===\n\nAn Android library that help you to build app with swipe back gesture.\n\n\n![](https://github.com/Issacw0ng/SwipeBackLayout/blob/master/art/screenshot.png?raw=true)\n\n\nDemo Apk\n===\n[GooglePlay](https://play.google.com/store/apps/details?id=me.imid.swipebacklayout.demo)\n\n\nRequirement\n===\nThe latest android-support-v4.jar should be referenced by your project.\n\nUsage\n===\n1. Add SwipeBackLayout as a dependency to your existing project.\n2. To enable SwipeBackLayout, you can simply make your `Activity` extend `SwipeBackActivity`:\n\t* In `onCreate` method, `setContentView()` should be called as usual.\n\t* You will have access to the `getSwipeBackLayout()` method so you can customize the `SwipeBackLayout`. \n3. Make window translucent by adding `\u003citem name=\"android:windowIsTranslucent\"\u003etrue\u003c/item\u003e` to your theme.\n\nSimple Example\n===\n```\npublic class DemoActivity extends SwipeBackActivity implements View.OnClickListener {\n    private int[] mBgColors;\n\n    private static int mBgIndex = 0;\n\n    private String mKeyTrackingMode;\n\n    private RadioGroup mTrackingModeGroup;\n\n    private SwipeBackLayout mSwipeBackLayout;\n\n    @Override\n    protected void onCreate(Bundle savedInstanceState) {\n        super.onCreate(savedInstanceState);\n        setContentView(R.layout.activity_demo);\n        changeActionBarColor();\n        findViews();\n        mKeyTrackingMode = getString(R.string.key_tracking_mode);\n        mSwipeBackLayout = getSwipeBackLayout();\n\n        mTrackingModeGroup.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener() {\n            @Override\n            public void onCheckedChanged(RadioGroup group, int checkedId) {\n                int edgeFlag;\n                switch (checkedId) {\n                    case R.id.mode_left:\n                        edgeFlag = SwipeBackLayout.EDGE_LEFT;\n                        break;\n                    case R.id.mode_right:\n                        edgeFlag = SwipeBackLayout.EDGE_RIGHT;\n                        break;\n                    case R.id.mode_bottom:\n                        edgeFlag = SwipeBackLayout.EDGE_BOTTOM;\n                        break;\n                    default:\n                        edgeFlag = SwipeBackLayout.EDGE_ALL;\n                }\n                mSwipeBackLayout.setEdgeTrackingEnabled(edgeFlag);\n                saveTrackingMode(edgeFlag);\n            }\n        });\n    }\n...\n```\n\nDownload\n===\nDownload via Jcenter:\n```\ncompile 'me.imid.swipebacklayout.lib:library:1.1.0'\n```\n\n\nSupport\n===\n\u003cimg src=\"https://github.com/ikew0ng/SwipeBackLayout/blob/master/art/support.jpeg\" width=\"300\"\u003e\n\n\n\nPull Requests\n===\nI will gladly accept pull requests for fixes and feature enhancements but please do them in the develop branch.\n\nLicense\n===\n\n   Copyright 2013 Isaac Wang\n\n   Licensed under the Apache License, Version 2.0 (the \"License\");\n   you may not use this file except in compliance with the License.\n   You may obtain a copy of the License at\n\n     http://www.apache.org/licenses/LICENSE-2.0\n\n   Unless required by applicable law or agreed to in writing, software\n   distributed under the License is distributed on an \"AS IS\" BASIS,\n   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n   See the License for the specific language governing permissions and\n   limitations under the License.\n","funding_links":[],"categories":["Index `(light-weight pages)`","Java","Index"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fikew0ng%2FSwipeBackLayout","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fikew0ng%2FSwipeBackLayout","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fikew0ng%2FSwipeBackLayout/lists"}