{"id":13396121,"url":"https://github.com/askerov/DynamicGrid","last_synced_at":"2025-03-13T22:31:42.948Z","repository":{"id":10519012,"uuid":"12708443","full_name":"askerov/DynamicGrid","owner":"askerov","description":"Drag and drop GridView for Android","archived":true,"fork":false,"pushed_at":"2018-05-22T08:00:18.000Z","size":277,"stargazers_count":927,"open_issues_count":51,"forks_count":288,"subscribers_count":50,"default_branch":"master","last_synced_at":"2024-07-31T18:16:34.676Z","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/askerov.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-09-09T17:59:04.000Z","updated_at":"2024-05-31T07:38:36.000Z","dependencies_parsed_at":"2022-08-27T04:01:43.757Z","dependency_job_id":null,"html_url":"https://github.com/askerov/DynamicGrid","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/askerov%2FDynamicGrid","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/askerov%2FDynamicGrid/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/askerov%2FDynamicGrid/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/askerov%2FDynamicGrid/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/askerov","download_url":"https://codeload.github.com/askerov/DynamicGrid/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243493861,"owners_count":20299728,"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:40.735Z","updated_at":"2025-03-13T22:31:42.395Z","avatar_url":"https://github.com/askerov.png","language":"Java","readme":"DynamicGrid\n===========\n\nDrag and drop GridView for Android.\n\nDepricated\n===========\nIt's much better to use solutions based on recycler view. For example https://github.com/h6ah4i/android-advancedrecyclerview\n\nDemo\n----\n\n\u003ca href=\"http://www.youtube.com/watch?feature=player_embedded\u0026v=zlzNvxksIfY\n\" target=\"_blank\"\u003e\u003cimg src=\"http://img.youtube.com/vi/zlzNvxksIfY/0.jpg\" \nalt=\"example\" width=\"240\" height=\"180\" border=\"10\" /\u003e\u003c/a\u003e\n\nRequirements\n----------\nRearranging items require api 8 (Froyo).\nAll grid item animations require api 11 (Honeycomb).\n\nUsage\n----------\nAll the same as for normal GridView. Adapter must extends\n[AbstractDynamicGridAdapter](https://github.com/askerov/DynamicGrid/blob/master/dynamicgrid/src/org/askerov/dynamicgid/AbstractDynamicGridAdapter.java \"AbstractDynamicGridAdapter\")\nor [BaseDynamicGridAdapter](https://github.com/askerov/DynamicGrid/blob/master/dynamicgrid/src/org/askerov/dynamicgid/BaseDynamicGridAdapter.java \"BaseDynamicGridAdapter\")   \n       \n```java\ngridView = (DynamicGridView) findViewById(R.id.dynamic_grid);\n// pass to adapter context, list of items and number of columns count\ngridView.setAdapter(new MyDynamicGridAdapter(this, itemsList, 3));\n```\n    \nTo start Drag'n'drop mode:\n\n```java\ngridView.startEditMode();\n```\n    \nOr from onItemClik() and onItemLongClick()\n\n```java\ngridView.startEditMode(position);\n```\n    \nTo stop:\n\n```java\ngridView.stopEditMode();\n```\n    \nAdding drop listener:\n\n```java\ngridView.setOnDropListener(new DynamicGridView.OnDropListener(){\n    @Override\n    public void onActionDrop(){\n        // stop edit mode immediately after drop item\n        gridView.stopEditMode();\n        }\n    });\n```\n\nYou can find more detailed usage example [here](https://github.com/askerov/DynamicGrid/tree/master/example).  \n\nCredits\n--------\nDynamicGridView based on [Daniel Olshansky](https://plus.google.com/108153578400873445224/) ListView cell dragging and rearranging [example](https://www.youtube.com/watch?v=_BZIvjMgH-Q).  \n\n","funding_links":[],"categories":["Index `(light-weight pages)`","Sort\u0026Drag","Index","Libs"],"sub_categories":["\u003cA NAME=\"Widget\"\u003e\u003c/A\u003eWidget"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faskerov%2FDynamicGrid","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faskerov%2FDynamicGrid","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faskerov%2FDynamicGrid/lists"}