works-widget

Works Widget for Android

License

License

GroupId

GroupId

com.mobilesolutionworks
ArtifactId

ArtifactId

works-widget
Last Version

Last Version

1.0.4
Release Date

Release Date

Type

Type

jar
Description

Description

works-widget
Works Widget for Android
Project URL

Project URL

http://sg.linkedin.com/in/yunarta/
Source Code Management

Source Code Management

https://github.com/yunarta/works-widget

Download works-widget

How to add to project

<!-- https://jarcasting.com/artifacts/com.mobilesolutionworks/works-widget/ -->
<dependency>
    <groupId>com.mobilesolutionworks</groupId>
    <artifactId>works-widget</artifactId>
    <version>1.0.4</version>
</dependency>
// https://jarcasting.com/artifacts/com.mobilesolutionworks/works-widget/
implementation 'com.mobilesolutionworks:works-widget:1.0.4'
// https://jarcasting.com/artifacts/com.mobilesolutionworks/works-widget/
implementation ("com.mobilesolutionworks:works-widget:1.0.4")
'com.mobilesolutionworks:works-widget:jar:1.0.4'
<dependency org="com.mobilesolutionworks" name="works-widget" rev="1.0.4">
  <artifact name="works-widget" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.mobilesolutionworks', module='works-widget', version='1.0.4')
)
libraryDependencies += "com.mobilesolutionworks" % "works-widget" % "1.0.4"
[com.mobilesolutionworks/works-widget "1.0.4"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

Works Widget

This project contains basic widget for helping you tackle design problem such as layout with constrained ratio.

ConstrainedFrameLayout

A FrameLayout subclass which allows you to create a width height ratio constrained layout

![](screenshot/fig1.png)
Figure. 1 - Constrained FrameLayout

Layout examples:

<view
            class="works.ConstrainedFrameLayout"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            works:worksRatioHorizontal="integer"
            works:worksRatioVertical="integer"
            works:worksKeep="width|height"/>

This widget is especially useful for handling ImageView dimension.

Usage

Adding as dependency

Manual

  • Download AAR
  • Put the AAR in the libs subfolder of your Android project
  • If you are using gradle you can use this dependency setting below
compile(name:'works-widget-1.0.4', ext:'aar')

or

Gradle dependency

compile 'com.mobilesolutionworks:works-widget:1.0.4@aar'

Maven dependency

<dependency>
	<groupId>com.mobilesolutionworks</groupId>
	<artifactId>works-widget</artifactId>
	<version>1.0.4</version>
	<type>pom</type>
</dependency>

Versions

Version
1.0.4
1.0.3
1.0.2
1.0.1
1.0