{"id":17688202,"url":"https://github.com/ccapton/dragview","last_synced_at":"2025-05-13T00:47:48.635Z","repository":{"id":176302392,"uuid":"162008702","full_name":"Ccapton/DragView","owner":"Ccapton","description":"可拖拽的view。A draggable viewgroup.","archived":false,"fork":false,"pushed_at":"2018-12-16T16:39:56.000Z","size":463,"stargazers_count":7,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-13T00:47:42.613Z","etag":null,"topics":["android-dragview","draggable","dragview"],"latest_commit_sha":null,"homepage":"","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/Ccapton.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-12-16T14:23:05.000Z","updated_at":"2023-01-10T20:27:26.000Z","dependencies_parsed_at":"2023-06-29T21:48:40.306Z","dependency_job_id":null,"html_url":"https://github.com/Ccapton/DragView","commit_stats":null,"previous_names":["ccapton/dragview"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ccapton%2FDragView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ccapton%2FDragView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ccapton%2FDragView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ccapton%2FDragView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Ccapton","download_url":"https://codeload.github.com/Ccapton/DragView/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253850882,"owners_count":21973672,"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":["android-dragview","draggable","dragview"],"created_at":"2024-10-24T11:43:44.997Z","updated_at":"2025-05-13T00:47:48.582Z","avatar_url":"https://github.com/Ccapton.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DragView\n可拖拽的view,继承自RelativeLayout。A draggable viewgroup which is extended from RelativeLayout.\n\n![](https://raw.githubusercontent.com/Ccapton/DragView/master/dragview_demo.gif)\n\n### 特性\n- 可放置在任意类型的父布局中\n- 可贴合父类布局的四个边界\n- 可设置触发贴合的距离\n\n### 示例布局\n```\n\u003ccom.ccapton.dragview.DragView\n    android:id=\"@+id/dragview\"\n    app:alignDistance=\"45dp\"\n    app:bottomAlign=\"true\"\n    app:topAlign=\"true\"\n    app:leftAlign=\"true\"\n    app:rightAlign=\"true\"\n    android:layout_width=\"80dp\"\n    android:layout_height=\"80dp\"\u003e\n    \u003c!--这里可放置你的子布局--\u003e\n\u003c/com.ccapton.dragview.DragView\u003e\n```\n\n### 方法\n``` bash\nsetAlignDistance(float); // 触发贴合四周的距离（dp）\n\nsetTopAlign(boolean);    // 是否贴合顶部\nsetLeftAlign(boolean);   // 是否贴合左边\nsetRightAlign(boolean);  // 是否贴合右边\nsetBottomAlign(boolean); // 是否贴合底部\n\nsetOnDragViewClickListener(OnDragViewClickListener); // 设置DragView的单击事件\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fccapton%2Fdragview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fccapton%2Fdragview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fccapton%2Fdragview/lists"}