{"id":21130257,"url":"https://github.com/wmbest2/SwipeableLayout","last_synced_at":"2025-07-09T01:32:56.551Z","repository":{"id":10951165,"uuid":"13261123","full_name":"wmbest2/SwipeableLayout","owner":"wmbest2","description":"A swipeable - auto resizing view group for android","archived":false,"fork":false,"pushed_at":"2013-12-07T23:06:04.000Z","size":181,"stargazers_count":115,"open_issues_count":2,"forks_count":22,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-04-15T14:16:56.557Z","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":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wmbest2.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-10-02T02:30:06.000Z","updated_at":"2023-08-17T04:09:48.000Z","dependencies_parsed_at":"2022-08-30T10:51:12.386Z","dependency_job_id":null,"html_url":"https://github.com/wmbest2/SwipeableLayout","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/wmbest2%2FSwipeableLayout","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wmbest2%2FSwipeableLayout/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wmbest2%2FSwipeableLayout/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wmbest2%2FSwipeableLayout/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wmbest2","download_url":"https://codeload.github.com/wmbest2/SwipeableLayout/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225476370,"owners_count":17480215,"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-11-20T05:32:29.492Z","updated_at":"2024-11-20T05:32:38.570Z","avatar_url":"https://github.com/wmbest2.png","language":"Java","funding_links":[],"categories":["Libs"],"sub_categories":["\u003cA NAME=\"Widget\"\u003e\u003c/A\u003eWidget"],"readme":"SwipeableLayout\n==============\n\nA swipeable - auto resizing view group for android\n\nUsage\n---\n\nbuild.gradle\n\n```groovy\ncompile 'com.wmbest.widget:swipeable-layout:1.0.+@aar'\n```\n\n-- or --\n\npom.xml\n\n```xml\n\u003cdependency\u003e\n  \u003cgroupId\u003ecom.wmbest.widget\u003c/groupId\u003e\n  \u003cartifactId\u003eswipeable-layout\u003c/artifactId\u003e\n  \u003cversion\u003e1.0.+\u003c/version\u003e\n  \u003ctype\u003eaar\u003c/type\u003e\n\u003c/dependency\u003e\n```\n\nlayout.xml\n\n```xml\n\u003ccom.wmbest.widget.SwipeableLayout\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"wrap_content\"\n    xmlns:swipe=\"http://schemas.android.com/apk/res-auto\"\n    swipe:frontView=\"@+id/front\"\n    swipe:backView=\"@+id/back\"\n    swipe:direction=\"right\"\n    \u003e\n    \u003cView\n        android:id=\"@id/back\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"200dip\"\n        android:background=\"#ff00ff00\"\n        /\u003e\n    \u003cView\n        android:id=\"@id/front\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"45dip\"\n        android:background=\"#ff0000ff\"\n        /\u003e\n\u003c/com.wmbest.widget.SwipeableLayout\u003e\n```\n\nAttributes\n---\n * frontView - The Swipeable View - **required**\n * backView  - The Background View - **required**\n * tabView - This View is used to simulate the background view \n    when the frontView is closed but doesn't cover\n * direction - Swipe Direction (Default left)\n * peekSize - Amount to keep from sliding over\n * grabSize - Amount of touch area for swiping closed\n\nDemo\n---\n![Imgur](http://i.imgur.com/mmHBRob.gif)\n\n```xml\n\u003cLinearLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    xmlns:tools=\"http://schemas.android.com/tools\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"match_parent\"\n    android:paddingLeft=\"@dimen/activity_horizontal_margin\"\n    android:paddingRight=\"@dimen/activity_horizontal_margin\"\n    android:paddingTop=\"@dimen/activity_vertical_margin\"\n    android:paddingBottom=\"@dimen/activity_vertical_margin\"\n    android:orientation=\"vertical\"\n    tools:context=\".MainActivity\"\u003e\n\n    \u003ccom.wmbest.widget.SwipeableLayout\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"wrap_content\"\n        xmlns:swipe=\"http://schemas.android.com/apk/res-auto\"\n        swipe:frontView=\"@+id/front\"\n        swipe:backView=\"@+id/back\"\n        swipe:direction=\"right\"\n        \u003e\n        \u003cView\n            android:id=\"@id/back\"\n            android:layout_width=\"match_parent\"\n            android:layout_height=\"200dip\"\n            android:background=\"#ff00ff00\"\n            /\u003e\n        \u003cView\n            android:id=\"@id/front\"\n            android:layout_width=\"match_parent\"\n            android:layout_height=\"45dip\"\n            android:background=\"#ff0000ff\"\n            /\u003e\n    \u003c/com.wmbest.widget.SwipeableLayout\u003e\n\n\n    \u003ccom.wmbest.widget.SwipeableLayout\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"wrap_content\"\n        android:layout_marginTop=\"20dip\"\n        xmlns:swipe=\"http://schemas.android.com/apk/res-auto\"\n        swipe:frontView=\"@+id/front\"\n        swipe:backView=\"@+id/back\"\n        \u003e\n        \u003cTextView\n            android:id=\"@id/back\"\n            android:layout_width=\"wrap_content\"\n            android:layout_height=\"wrap_content\"\n            android:padding=\"40dip\"\n            android:background=\"#ff0000ff\"\n            android:text=\"BACK\" /\u003e\n        \u003cTextView\n            android:id=\"@id/front\"\n            android:layout_width=\"wrap_content\"\n            android:layout_height=\"wrap_content\"\n            android:background=\"#7f00ff00\"\n            android:text=\"FRONT\" /\u003e\n    \u003c/com.wmbest.widget.SwipeableLayout\u003e\n\n\n\u003c/LinearLayout\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwmbest2%2FSwipeableLayout","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwmbest2%2FSwipeableLayout","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwmbest2%2FSwipeableLayout/lists"}