WiggleFrameLayout

WiggleFrameLayout for Android

License

License

GroupId

GroupId

com.github.kubode
ArtifactId

ArtifactId

wiggle-frame-layout
Last Version

Last Version

1.0.0
Release Date

Release Date

Type

Type

aar
Description

Description

WiggleFrameLayout
WiggleFrameLayout for Android
Project URL

Project URL

https://github.com/kubode/WiggleFrameLayout
Source Code Management

Source Code Management

https://github.com/kubode/WiggleFrameLayout

Download wiggle-frame-layout

How to add to project

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

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.

Wiggle

GitHub release Build Status license

Image

Usage

Add dependency to build.gradle.

repositories {
    jcenter()
}
dependencies {
    compile "com.github.kubode.wiggle:framelayout:${latestVersion}"
}

You can use WiggleFrameLayout in the same way as FrameLayout.

<com.github.kubode.wiggle.framelayout.WiggleFrameLayout
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_margin="20dp"
    android:foreground="#80ffffff" />

Custom delay duration

WiggleFrameLayout supports either delayFrames or delayMillis XML attributes.

<com.github.kubode.wiggle.framelayout.WiggleFrameLayout
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_margin="20dp"
    android:foreground="#80ffffff"
    app:delayMillis="100" />

Default is set to delayFrames=1.

Notes

WiggleFrameLayout uses translationX and translationY. So you can't use animation of translationX and translationY.

Core

If you implement wiggle motion yourself using WiggleHelper, add dependency core rather than framelayout.

dependencies {
    compile "com.github.kubode.wiggle:core:${latestVersion}"
}

License

Copyright 2016 Masatoshi Kubode

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Versions

Version
1.0.0