Android Constrained Widgets


This library offers a set of widgets that will respect a given aspect ratio while allowing to set relative dimensions. For instance, you can have a layout that extends to the whole available width but whose height will be adjusted to always keep a square shape.


Install/import with Gradle

Instructions for Gradle

Add the following to your build.gradle,

dependencies {
    compile 'com.marvinlabs:android-constrained-widgets:1.2.+@aar'
Facebook Twitter Google Reddit LinkedIn

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *