SquareLayout

Wrapper Layout designed to provide Square dimensioned Views for Android

License

License

Categories

Categories

Square Business Logic Libraries Financial
GroupId

GroupId

com.github.kaushikthedeveloper
ArtifactId

ArtifactId

squarelayout
Last Version

Last Version

0.0.3
Release Date

Release Date

Type

Type

aar
Description

Description

SquareLayout
Wrapper Layout designed to provide Square dimensioned Views for Android
Project URL

Project URL

https://github.com/kaushikthedeveloper/SquareLayout
Source Code Management

Source Code Management

https://github.com/kaushikthedeveloper/SquareLayout

Download squarelayout

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.kaushikthedeveloper/squarelayout/ -->
<dependency>
    <groupId>com.github.kaushikthedeveloper</groupId>
    <artifactId>squarelayout</artifactId>
    <version>0.0.3</version>
    <type>aar</type>
</dependency>
// https://jarcasting.com/artifacts/com.github.kaushikthedeveloper/squarelayout/
implementation 'com.github.kaushikthedeveloper:squarelayout:0.0.3'
// https://jarcasting.com/artifacts/com.github.kaushikthedeveloper/squarelayout/
implementation ("com.github.kaushikthedeveloper:squarelayout:0.0.3")
'com.github.kaushikthedeveloper:squarelayout:aar:0.0.3'
<dependency org="com.github.kaushikthedeveloper" name="squarelayout" rev="0.0.3">
  <artifact name="squarelayout" type="aar" />
</dependency>
@Grapes(
@Grab(group='com.github.kaushikthedeveloper', module='squarelayout', version='0.0.3')
)
libraryDependencies += "com.github.kaushikthedeveloper" % "squarelayout" % "0.0.3"
[com.github.kaushikthedeveloper/squarelayout "0.0.3"]

Dependencies

compile (2)

Group / Artifact Type Version
com.android.support » appcompat-v7 jar 26.0.1
com.android.support » percent jar 26.0.1

Project Modules

There are no modules declared in this project.

SquareLayout

Download License: MIT

Provide a wrapper class for creating Square dimensioned ViewGroups of the various layouts used in Android.


Usage

Add dependencies to your module's build.gradle :

dependencies {
    compile 'com.github.kaushikthedeveloper:squarelayout:0.0.3'
}

Add the different SquareLayoutViews to your layout (Minimalistic Layout shown below) :

<com.kaushikthedeveloper.squarelayout.SquareLinearLayout
    android:layout_width="match_parent"
    android:layout_height="match_parent"
/>

The min version for Support Library requires version "26.+"

Features :

  • Square Layout dimensions calculated before View is rendered.
  • No extra cost, nor any re-rendering processes involved.
  • Basic Layout methods remain untouched and can be accessed.

Square Layouts Supported :

  • SquareFrameLayout
  • SquareGridLayout
  • SquareLinearLayout
  • SquareRelativeLayout
  • SquareTableLayout
  • SquarePercentFrameLayout (deprecated)
  • SquarePercentRelativeLayout (deprecated)

Note : the Preview of the XML for SquareLayouts is broken for the moment (due to the method used for rendering perfect Square in all situations), though this in no way affects the Performance nor the rendering of the Layouts.

Versions

Version
0.0.3
0.0.2
0.0.1