{"id":13643105,"url":"https://github.com/nex3z/FlowLayout","last_synced_at":"2025-04-20T21:32:53.284Z","repository":{"id":41293775,"uuid":"77922073","full_name":"nex3z/FlowLayout","owner":"nex3z","description":"A flow layout for Android with auto-spacing.","archived":false,"fork":false,"pushed_at":"2021-03-30T16:36:41.000Z","size":357,"stargazers_count":2426,"open_issues_count":0,"forks_count":289,"subscribers_count":44,"default_branch":"master","last_synced_at":"2024-11-05T03:51:28.778Z","etag":null,"topics":["android-library","flowlayout"],"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/nex3z.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-01-03T14:02:06.000Z","updated_at":"2024-10-24T09:13:21.000Z","dependencies_parsed_at":"2022-09-01T14:02:49.493Z","dependency_job_id":null,"html_url":"https://github.com/nex3z/FlowLayout","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nex3z%2FFlowLayout","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nex3z%2FFlowLayout/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nex3z%2FFlowLayout/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nex3z%2FFlowLayout/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nex3z","download_url":"https://codeload.github.com/nex3z/FlowLayout/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223839372,"owners_count":17211925,"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-library","flowlayout"],"created_at":"2024-08-02T01:01:41.736Z","updated_at":"2024-11-09T14:31:44.044Z","avatar_url":"https://github.com/nex3z.png","language":"Java","readme":"# FlowLayout\n\nA FlowLayout for Android, which allows child views flow to next row when there is no enough space. The spacing between child views can be calculated by the FlowLayout so that the views are evenly placed.\n\n\u003cp align=\"center\"\u003e\n\u003cimg src=\"images/sample.png\" width=\"360\"/\u003e\n\u003c/p\u003e\n\n\n## Gradle\n\nAndroidX:\n\n```\nimplementation 'com.nex3z:flow-layout:1.3.3'\n```\n\nAppCompact:\n\n```\nimplementation 'com.nex3z:flow-layout:1.2.4'\n```\n\n\n## Usage\n\n```xml\n\u003ccom.nex3z.flowlayout.FlowLayout\n    xmlns:app=\"http://schemas.android.com/apk/res-auto\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"wrap_content\"\n    app:flChildSpacing=\"auto\"\n    app:flChildSpacingForLastRow=\"align\"\n    app:flRowSpacing=\"8dp\"\u003e\n\n    \u003cTextView\n        android:layout_width=\"wrap_content\"\n        android:layout_height=\"wrap_content\"\n        android:text=\"SUN\"/\u003e\n\n    \u003cTextView\n        android:layout_width=\"wrap_content\"\n        android:layout_height=\"wrap_content\"\n        android:text=\"MON\"/\u003e\n\n    \u003c!--...--\u003e\n\n\u003c/com.nex3z.flowlayout.FlowLayout\u003e\n```\n\n\n## Attributes\n\n| Attribute                | Format                       | Description                                                                                                                                          |\n|--------------------------|------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------|\n| flFlow                   | boolean                      | `true` to allow flow. `false` to restrict all child views in one row. The default is `true`.                                                         |\n| flChildSpacing           | `auto`/dimension             | The horizontal spacing between child views. Either `auto`, or a fixed size. The default is 0dp.                                                      |\n| flChildSpacingForLastRow | `auto`/`align`/\u003cbr\u003edimension | The horizontal spacing between child views of the last row. Either `auto`, `align` or a fixed size. If not set, `childSpacing` will be used instead. |\n| flRowSpacing             | `auto`/dimension             | The vertical spacing between rows. Either `auto`, or a fixed size. The default is 0dp.                                                               |\n| flRtl                    | boolean                      | `true` to layout child views from right to left. `false` to layout from left to right. The default is `false`.                                       |\n| flMaxRows                | integer                      | The maximum height of FlowLayout in terms of number of rows.                                                                                         |\n\n`auto` means that the actual spacing is calculated as per the size of the `FlowLayout` and the number of child views (or rows), so that the child views (or rows) are placed evenly.\n\n`align` in `childSpacingForLastRow` means that the horizontal spacing of the child views in the last row keeps the same with the spacing used in the row above. If there is only one row in `FlowLayout` and the `childSpacingForLastRow` is set to `align`, this value is ignored and the actual spacing is calculated using `childSpacing`.\n\n\n## Licence\n\n```\nCopyright 2016 nex3z\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n   http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n```\n","funding_links":[],"categories":["TagView"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnex3z%2FFlowLayout","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnex3z%2FFlowLayout","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnex3z%2FFlowLayout/lists"}