{"id":18789201,"url":"https://github.com/dsiner/slidelayout","last_synced_at":"2025-10-11T14:05:00.526Z","repository":{"id":55625578,"uuid":"92754050","full_name":"Dsiner/SlideLayout","owner":"Dsiner","description":"SlideLayout for Android    ——Sliding delete, sliding menu, implementation by scroller ；侧滑删除, 侧滑菜单, Scroller方式实现","archived":false,"fork":false,"pushed_at":"2021-01-10T16:46:28.000Z","size":496,"stargazers_count":67,"open_issues_count":1,"forks_count":15,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-07-31T05:28:37.631Z","etag":null,"topics":["menu","scroller","slide","swipe"],"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/Dsiner.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2017-05-29T15:51:08.000Z","updated_at":"2025-07-18T06:29:31.000Z","dependencies_parsed_at":"2022-08-15T04:50:18.626Z","dependency_job_id":null,"html_url":"https://github.com/Dsiner/SlideLayout","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/Dsiner/SlideLayout","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dsiner%2FSlideLayout","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dsiner%2FSlideLayout/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dsiner%2FSlideLayout/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dsiner%2FSlideLayout/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Dsiner","download_url":"https://codeload.github.com/Dsiner/SlideLayout/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dsiner%2FSlideLayout/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279007482,"owners_count":26084313,"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","status":"online","status_checked_at":"2025-10-11T02:00:06.511Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["menu","scroller","slide","swipe"],"created_at":"2024-11-07T21:06:56.387Z","updated_at":"2025-10-11T14:05:00.502Z","avatar_url":"https://github.com/Dsiner.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SlideLayout for Android\n\n[![License](https://img.shields.io/badge/license-Apache%202-green.svg)](https://www.apache.org/licenses/LICENSE-2.0)\n[![API](https://img.shields.io/badge/API-9%2B-green.svg?style=flat)](https://android-arsenal.com/api?level=9)\n[![Download](https://api.bintray.com/packages/dsiner/maven/slidelayout/images/download.svg) ](https://bintray.com/dsiner/maven/slidelayout/_latestVersion)\n\n\u003ca href=\"https://github.com/Dsiner/SlideLayout\" target=\"_blank\"\u003e\u003cp align=\"center\"\u003e\u003cimg src=\"https://github.com/Dsiner/SlideLayout/blob/master/logo/SL_Logotype.png\" alt=\"SlideLayout\" height=\"150px\"\u003e\u003c/p\u003e\u003c/a\u003e\n\n## Demo\n\u003cimg src=\"https://github.com/Dsiner/Resouce/blob/master/lib/SlideLayout/slidelayout.gif\" width=\"320\" alt=\"Screenshot\"/\u003e\n\u003cimg src=\"https://github.com/Dsiner/Resouce/blob/master/lib/SlideLayout/slidelayout01.gif\" width=\"320\" alt=\"Screenshot\"/\u003e\n\n## Setup\nMaven:\n```xml\n\u003cdependency\u003e\n  \u003cgroupId\u003ecom.dsiner.lib\u003c/groupId\u003e\n  \u003cartifactId\u003eslidelayout\u003c/artifactId\u003e\n  \u003cversion\u003e1.0.4\u003c/version\u003e\n\u003c/dependency\u003e\n```\nor Gradle:\n```groovy\ncompile 'com.dsiner.lib:slidelayout:1.0.4'\n```\n\n## How do I use it?\n\n### Via XML ###\n```xml\n    \u003c!-- Just contain two view --\u003e\n    \u003ccom.d.lib.slidelayout.SlideLayout\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"65dp\"\u003e\n\n        \u003c!-- Content view --\u003e\n        \u003cView\n            android:layout_width=\"match_parent\"\n            android:layout_height=\"match_parent\" /\u003e\n\n        \u003c!-- Slide view --\u003e\n        \u003cView\n            android:layout_width=\"wrap_content\"\n            android:layout_height=\"match_parent\" /\u003e\n    \u003c/com.d.lib.slidelayout.SlideLayout\u003e\n```\n\n### Operation ###\n```java\n        boolean isEnable();\n        void setEnable(Boolean isEnable);\n\n        boolean isOpen();\n        void open();\n        void close();\n        void setOpen(boolean open, boolean withAnim);\n```\n\n### State change callback ###\nJust implement `SlideLayout.OnStateChangeListener`:\n\n```java\n        .setOnStateChangeListener(new SlideLayout.OnStateChangeListener() {\n\n            @Override\n            public boolean onInterceptTouchEvent(SlideLayout layout) {\n                return false;\n            }\n\n            @Override\n            public void onStateChanged(SlideLayout layout, boolean open) {\n                ...\n            }\n        });\n```\n\n### Parameter ###\n| Attrs        | Type           | Function  |\n| ------------- |:-------------:| -----:|\n| sl_enable      | Boolean      | Enable   |\n| sl_slideSlop   | Dimension    | Slop     |\n| sl_duration    | Integer      | Duration |\n\n\nMore usage see [Demo](app/src/main/java/com/d/slidelayout/MainActivity.java)\n\n## Latest Changes\n- [Changelog.md](CHANGELOG.md)\n\n## Contributors\n- [Tebriz](https://github.com/tebriz159)  - Logo design contribution\n\n## Licence\n\n```txt\nCopyright 2017 D\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdsiner%2Fslidelayout","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdsiner%2Fslidelayout","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdsiner%2Fslidelayout/lists"}