FoldableLayout

FoldableLayout is an Android layout allowing nice foldable animations.

License

License

GroupId

GroupId

com.vincentbrison.openlibraries.android
ArtifactId

ArtifactId

foldablelayout
Last Version

Last Version

0.0.1
Release Date

Release Date

Type

Type

jar
Description

Description

FoldableLayout
FoldableLayout is an Android layout allowing nice foldable animations.
Project URL

Project URL

https://github.com/worldline/FoldableLayout
Source Code Management

Source Code Management

https://github.com/worldline/FoldableLayout

Download foldablelayout

How to add to project

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

Dependencies

compile (1)

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

Project Modules

There are no modules declared in this project.

Foldable Layout

This code is a showcase of a foldable animation I created for Worldline. The code is fully written with java APIs from the Android SDK, without the use of any external library. This code is a demo and not a library. The foldable layout is a layout (strictly a RelativeLayout), which can have two child layouts, one for the cover, and one for the details. The foldable layout takes care of the folding animation between those two layouts.

In the demo the foldable layout is used in a RecyclerView, to show that it can manage well its size even during animation.

IMAGE ALT TEXT HERE

Under the hood

Work in progress.

Is a library available ?

The library is available as is. No support guarantied. This is more a showcase, and if you want to use it, I greatly recommend you to understand the code from the foldablelayout and adapt it to your usage.

  • Ensure you can pull artifacts from Maven Central :

    repositories {
      mavenCentral()
    }
  • And add to your module gradle file :

    dependencies {
      compile 'com.vincentbrison.openlibraries.android:foldablelayout:0.0.1@aar'
    }

License

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.
com.vincentbrison.openlibraries.android

Worldline

Worldline is the new world-class leader in the payments and transactional services industry, with a global reach.

Versions

Version
0.0.1