{"id":13507743,"url":"https://github.com/dlew/android-gridlayout","last_synced_at":"2025-08-21T02:32:05.950Z","repository":{"id":2193245,"uuid":"3141355","full_name":"dlew/android-gridlayout","owner":"dlew","description":"A backwards compatible implementation of GridLayout for Android","archived":false,"fork":false,"pushed_at":"2020-07-17T15:31:27.000Z","size":60,"stargazers_count":186,"open_issues_count":0,"forks_count":51,"subscribers_count":17,"default_branch":"main","last_synced_at":"2024-12-16T08:15:13.346Z","etag":null,"topics":[],"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/dlew.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":"2012-01-10T00:05:17.000Z","updated_at":"2024-01-04T15:52:14.000Z","dependencies_parsed_at":"2022-07-30T21:48:06.513Z","dependency_job_id":null,"html_url":"https://github.com/dlew/android-gridlayout","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dlew%2Fandroid-gridlayout","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dlew%2Fandroid-gridlayout/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dlew%2Fandroid-gridlayout/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dlew%2Fandroid-gridlayout/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dlew","download_url":"https://codeload.github.com/dlew/android-gridlayout/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230479864,"owners_count":18232630,"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-08-01T02:00:38.468Z","updated_at":"2024-12-19T18:18:08.859Z","avatar_url":"https://github.com/dlew.png","language":"Java","funding_links":[],"categories":["CN","Libs"],"sub_categories":["[Daniel Lew](https://github.com/dlew)","\u003cA NAME=\"Widget\"\u003e\u003c/A\u003eWidget"],"readme":"GridLayout Library\n==================\n\nThis library provides a version of [GridLayout](http://developer.android.com/reference/android/widget/GridLayout.html) that works across all versions of Android 1.5+.  As a side effect, this library also includes the lightweight [Space](http://developer.android.com/reference/android/widget/Space.html) as well.\n\nFor an introduction to GridLayout/Space, [check out the Android Developers Blog post about the benefits and usage of GridLayout and Space](http://android-developers.blogspot.com/2011/11/new-layout-widgets-space-and-gridlayout.html).\n\nCompilation\n===========\n\nCompiling this library requires that the build SDK version be set to 3.0 or above.  (It uses some more modern methods if they are available.)\n\nUsage\n=====\n\nThis is a copy of the GridLayout from Android, so its usage is very similar.  The only difference is that some attributes you will need to use your project's namespace instead of the android namespace:\n\n    \u003ccom.gridlayout.GridLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\n        xmlns:gridlayout=\"http://schemas.android.com/apk/res/com.mycompany.myapp\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"match_parent\"\n        gridlayout:alignmentMode=\"alignBounds\"\n        gridlayout:columnCount=\"4\"\n        gridlayout:columnOrderPreserved=\"false\"\n        gridlayout:useDefaultMargins=\"true\" \u003e\n\nCaveats\n=======\n\nDue to the inability to detect changes in child visibility in older versions of ViewGroup, it is necessary to call `GridLayout.notifyChildVisibilityChanged()` whenever you change the visibility of a child View of a GridLayout.\n\nIf you never change the visibility of children, you don't have to worry about this.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdlew%2Fandroid-gridlayout","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdlew%2Fandroid-gridlayout","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdlew%2Fandroid-gridlayout/lists"}