Android-constrained-widgets

View project onGitHub

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.

Demo

A demo of the widget is worth a thousand words. You can download it for free on Google Play.

Demo on Google Play

Usage

The easiest way to get the library included in your project is by using Gradle. Simply add the following line to your dependencies block:

dependencies {
    compile 'com.marvinlabs:android-constrained-widgets:1.1.+@aar'
}

Of course, you can replace the version number by whichever version you need (you can have a look at this repository's tags to know which is the latest).

About Vincent & MarvinLabs

I am a freelance developer located in Biarritz, France. You can have a look at my website to get to know me a little better. If you want to follow me, here are some links:

MarvinLabs is my digital studio specialised in native mobile applications and web sites. You can browse our website to get to know us a little better. If you want to get updates about our work, you can also: