{"id":21492846,"url":"https://github.com/kevin-kip/squarelayout","last_synced_at":"2025-03-17T11:27:53.945Z","repository":{"id":176340292,"uuid":"164244313","full_name":"Kevin-Kip/SquareLayout","owner":"Kevin-Kip","description":"Square Layout library for android. ","archived":false,"fork":false,"pushed_at":"2019-05-02T08:28:06.000Z","size":1663,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-23T21:18:05.983Z","etag":null,"topics":["android-library","constraint-layout","custom-view","kotlin","library","squarelayout"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","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/Kevin-Kip.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}},"created_at":"2019-01-05T19:20:01.000Z","updated_at":"2019-08-10T03:07:03.000Z","dependencies_parsed_at":null,"dependency_job_id":"981bf46a-5ad8-4eac-a532-7e83f808c32d","html_url":"https://github.com/Kevin-Kip/SquareLayout","commit_stats":null,"previous_names":["kevin-kip/squarelayout"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kevin-Kip%2FSquareLayout","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kevin-Kip%2FSquareLayout/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kevin-Kip%2FSquareLayout/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kevin-Kip%2FSquareLayout/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Kevin-Kip","download_url":"https://codeload.github.com/Kevin-Kip/SquareLayout/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244024212,"owners_count":20385391,"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","constraint-layout","custom-view","kotlin","library","squarelayout"],"created_at":"2024-11-23T15:33:40.740Z","updated_at":"2025-03-17T11:27:53.800Z","avatar_url":"https://github.com/Kevin-Kip.png","language":"Kotlin","funding_links":["https://www.buymeacoffee.com/CHFudJf9j"],"categories":[],"sub_categories":[],"readme":"[![Download](https://api.bintray.com/packages/kevinkiprotich/SquareLayout/com.revosleap.squarelayout/images/download.svg) ](https://bintray.com/kevinkiprotich/SquareLayout/com.revosleap.squarelayout/_latestVersion)\n\n## SquareLayout \nSquare layout for android. \nIt only inherits from `ConstraintLayout`.\nI did not see the need to create many for each ViewGroup since it would make the library big and providing many classes you wouldn't use :smiley:\n## Table of Contents\n1. [Dependencies](#dependencies)\n2. [Usage](#usage)\n3. [Methods](#methods)\n4. [Contribution](#contribution)\n5. [Author](#author)\n6. [Support](#support)\n7. [License](#license)\n\n\u003ch3 id=\"dependencies\"\u003eDependencies\u003c/h3\u003e\n\n\u003eGradle\n```gradle\ndependencies {\n  implementation 'com.revosleap.squarelayout:squarelayout:1.0.0'\n}\n```\n\n\u003eMaven\n```maven\n\u003cdependency\u003e\n  \u003cgroupId\u003ecom.revosleap.squarelayout\u003c/groupId\u003e\n  \u003cartifactId\u003esquarelayout\u003c/artifactId\u003e\n  \u003cversion\u003e1.0.0\u003c/version\u003e\n  \u003ctype\u003epom\u003c/type\u003e\n\u003c/dependency\u003e\n```\n\n\u003ch3 id=\"usage\"\u003eUsage\u003c/h3\u003e\n\n\u003eXML\n```xml\n\u003ccom.revosleap.SquareLayout \n    xmlns:android=\"http://schemas.android.com/apk/res/android\"  \n    android:layout_width=\"match_parent\"  \n    android:layout_height=\"wrap_content\"   \n    android:id=\"@+id/square\"\n    xmlns:app=\"http://schemas.android.com/apk/res-auto\"\u003e  \n  \n    \u003cImageView .../\u003e\n    \u003cTextView .../\u003e  \n  \n\u003c/com.revosleap.SquareLayout\u003e\n```\n\n\u003eKotlin\n```kotlin \nval squareLayout = findViewById(R.id.square)\n// you can then do anything you'd do with a constraintLayout\n```\n```java\nSquareLayout squareLayout = (SquareLayout) findViewById(R.id.square)\n// you can then do anything you'd do with a constraintLayout\n```\n\n\n\u003ch3 id=\"methods\"\u003eMethods\u003c/h3\u003e\n\nAll the methods provided by the library are:\n\u003e All the methods provided by [ConstraintLayout](https://developer.android.com/reference/android/support/constraint/ConstraintLayout). :wink:\n\n\u003ch3 id=\"contribution\"\u003eContribution\u003c/h3\u003e\n\n1.  Fork\n2.  Create feature branch:  `git checkout -b my-feature-branch`\n3.  Commit changes:  `git commit -am 'new awesome feature'`\n4.  Push to the branch:  `git push origin my-feature-branch`\n5.  Submit a pull request \n\n\u003ch3 id=\"author\"\u003eAuthor\u003c/h3\u003e\n\nMade with :heart: by [Kevin Kiprotich](kevinkip.rf.gd)\n\n\u003ch3 id=\"support\"\u003eSupport\u003c/h3\u003e\n\n\u003ca href=\"https://www.buymeacoffee.com/CHFudJf9j\" target=\"_blank\"\u003e\u003cimg src=\"https://www.buymeacoffee.com/assets/img/custom_images/purple_img.png\" alt=\"Buy Me A Coffee\" style=\"height: auto !important;width: auto !important;\" \u003e\u003c/a\u003e\n\n\u003ch3 id=\"license\"\u003e License\u003c/h3\u003e\n\nMIT License  \n  \nCopyright (c) 2018 Kevin Kiprotich  \n  \nPermission is hereby granted, free of charge, to any person obtaining a copy  \nof this software and associated documentation files (the \"Software\"), to deal  \nin the Software without restriction, including without limitation the rights  \nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell  \ncopies of the Software, and to permit persons to whom the Software is  \nfurnished to do so, subject to the following conditions:  \n  \nThe above copyright notice and this permission notice shall be included in all  \ncopies or substantial portions of the Software.  \n  \nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR  \nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,  \nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE  \nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER  \nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,  \nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE  \nSOFTWARE.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkevin-kip%2Fsquarelayout","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkevin-kip%2Fsquarelayout","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkevin-kip%2Fsquarelayout/lists"}