Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kevin-kip/squarelayout
Square Layout library for android.
https://github.com/kevin-kip/squarelayout
android-library constraint-layout custom-view kotlin library squarelayout
Last synced: 21 days ago
JSON representation
Square Layout library for android.
- Host: GitHub
- URL: https://github.com/kevin-kip/squarelayout
- Owner: Kevin-Kip
- License: mit
- Created: 2019-01-05T19:20:01.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-05-02T08:28:06.000Z (almost 6 years ago)
- Last Synced: 2024-11-23T15:36:16.672Z (3 months ago)
- Topics: android-library, constraint-layout, custom-view, kotlin, library, squarelayout
- Language: Kotlin
- Homepage:
- Size: 1.59 MB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![Download](https://api.bintray.com/packages/kevinkiprotich/SquareLayout/com.revosleap.squarelayout/images/download.svg) ](https://bintray.com/kevinkiprotich/SquareLayout/com.revosleap.squarelayout/_latestVersion)
## SquareLayout
Square layout for android.
It only inherits from `ConstraintLayout`.
I 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:
## Table of Contents
1. [Dependencies](#dependencies)
2. [Usage](#usage)
3. [Methods](#methods)
4. [Contribution](#contribution)
5. [Author](#author)
6. [Support](#support)
7. [License](#license)Dependencies
>Gradle
```gradle
dependencies {
implementation 'com.revosleap.squarelayout:squarelayout:1.0.0'
}
```>Maven
```mavencom.revosleap.squarelayout
squarelayout
1.0.0
pom```
Usage
>XML
```xml
```
>Kotlin
```kotlin
val squareLayout = findViewById(R.id.square)
// you can then do anything you'd do with a constraintLayout
```
```java
SquareLayout squareLayout = (SquareLayout) findViewById(R.id.square)
// you can then do anything you'd do with a constraintLayout
```Methods
All the methods provided by the library are:
> All the methods provided by [ConstraintLayout](https://developer.android.com/reference/android/support/constraint/ConstraintLayout). :wink:Contribution
1. Fork
2. Create feature branch: `git checkout -b my-feature-branch`
3. Commit changes: `git commit -am 'new awesome feature'`
4. Push to the branch: `git push origin my-feature-branch`
5. Submit a pull requestAuthor
Made with :heart: by [Kevin Kiprotich](kevinkip.rf.gd)
Support
License
MIT License
Copyright (c) 2018 Kevin Kiprotich
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.