{"id":29166224,"url":"https://github.com/mfori/swipetohidelayout","last_synced_at":"2025-10-08T03:49:39.144Z","repository":{"id":138103124,"uuid":"120783116","full_name":"MFori/SwipeToHideLayout","owner":"MFori","description":"Simple android library for hiding views by dragging them out","archived":false,"fork":false,"pushed_at":"2018-02-09T22:09:01.000Z","size":192,"stargazers_count":4,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-01T08:11:22.826Z","etag":null,"topics":["android","animation","drag","draggable","hide-show","layout","swipe","view"],"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/MFori.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,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2018-02-08T15:58:38.000Z","updated_at":"2025-05-05T11:52:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"3ae5fe3a-d814-4e38-831c-6d874e28fe74","html_url":"https://github.com/MFori/SwipeToHideLayout","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/MFori/SwipeToHideLayout","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MFori%2FSwipeToHideLayout","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MFori%2FSwipeToHideLayout/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MFori%2FSwipeToHideLayout/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MFori%2FSwipeToHideLayout/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MFori","download_url":"https://codeload.github.com/MFori/SwipeToHideLayout/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MFori%2FSwipeToHideLayout/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278886414,"owners_count":26062975,"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-08T02:00:06.501Z","response_time":56,"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":["android","animation","drag","draggable","hide-show","layout","swipe","view"],"created_at":"2025-07-01T08:10:33.976Z","updated_at":"2025-10-08T03:49:39.139Z","avatar_url":"https://github.com/MFori.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SwipeToHideLayout\n\nSimple android lib for hiding out views by draging them out of screen in the set direction.\n\u003cbr/\u003eAlso provides methods for hiding and showing them manually.\n\n\u003ca href=\"https://imgflip.com/gif/2475bq\"\u003e\u003cimg src=\"https://i.imgflip.com/2475bq.gif\" title=\"made at imgflip.com\"/\u003e\u003c/a\u003e\n\u003ca href=\"https://imgflip.com/gif/2475hc\"\u003e\u003cimg src=\"https://i.imgflip.com/2475hc.gif\" title=\"made at imgflip.com\"/\u003e\u003c/a\u003e\n\u003ca href=\"https://imgflip.com/gif/2475j2\"\u003e\u003cimg src=\"https://i.imgflip.com/2475j2.gif\" title=\"made at imgflip.com\"/\u003e\u003c/a\u003e\n\n### Importing the library\nSimply add the following dependency to your build.gradle file:\n```\ncompile 'cz.martinforejt:swipetohidelayout:1.0.4'\n```\n### Usage\nWork with SwipeToHideLayout like with android FrameLayout.\n\u003cbr/\u003eDirection must be set (xml or ```setDirection(int)```) or exception will be thrown!\nThe layout must be aligned to side that is defined by direction. The width/height can not be ```MATCH_PARENT``` in sliding direction.\n```\n\u003ccz.martinforejt.swipetohidelayout.SwipeToHideLayout\n    android:id=\"@+id/layout_top\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"160dp\"\n    android:layout_alignParentTop=\"true\"\n    app:direction=\"top\"\u003e\n\n    \u003cTextView\n        android:layout_width=\"wrap_content\"\n        android:layout_height=\"wrap_content\"\n        android:layout_gravity=\"center\"\n        android:text=\"@string/swipe_me_top\" /\u003e\n\n\u003c/cz.martinforejt.swipetohidelayout.SwipeToHideLayout\u003e\n```\n\n```\nfinal SwipeToHideLayout top = findViewById(R.id.layout_top);\ntop.setOnSwipeChangeListener(new OnSwipeChangeListener() {\n    @Override\n    public void onSwipeChange(boolean visible, SwipeHideable swipeHideable) {\n        // catch swipe\n    }\n});\n```\n### XML attributes\n```\ndirection - drag direction (left, top, right, bottom)\nenabled - is dragging enabled (true, false)\n```\n### Methods\npublic methods from \n\u003ca href=\"https://mfori.github.io/SwipeToHideLayout/cz/martinforejt/swipetohidelayout/SwipeHideable.html\"\u003eSwipeHideable.java\u003c/a\u003e\n### Javadoc\n\u003ca target=\"_blank\" href=\"https://mfori.github.io/SwipeToHideLayout/\"\u003ehttps://mfori.github.io/SwipeToHideLayout/\u003c/a\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmfori%2Fswipetohidelayout","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmfori%2Fswipetohidelayout","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmfori%2Fswipetohidelayout/lists"}