Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/worldline/FoldableLayout
An Android demo of a foldable layout implementation. Engineered by Vincent Brison.
https://github.com/worldline/FoldableLayout
Last synced: 14 days ago
JSON representation
An Android demo of a foldable layout implementation. Engineered by Vincent Brison.
- Host: GitHub
- URL: https://github.com/worldline/FoldableLayout
- Owner: worldline
- License: apache-2.0
- Created: 2015-10-23T14:17:41.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2018-05-04T21:21:06.000Z (over 6 years ago)
- Last Synced: 2024-07-31T18:16:27.021Z (3 months ago)
- Language: Java
- Homepage:
- Size: 27.1 MB
- Stars: 601
- Watchers: 43
- Forks: 100
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
- -awesome-android-ui - FoldableLayout - 2.0) | <img src="/art/FoldableLayout.gif" width="49%"> (Index `(light-weight pages)`)
- awesome-android-ui - FoldableLayout - 2.0) | <img src="/art/FoldableLayout.gif" width="49%"> (Index `(light-weight pages)`)
- awesome-android-ui - FoldableLayout - 2.0) | <img src="/art/FoldableLayout.gif" width="49%"> (Index)
README
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.
![](https://raw.githubusercontent.com/worldline/FoldableLayout/dev/screenshots/demo.gif)
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 :
```gradle
repositories {
mavenCentral()
}
```- And add to your module gradle file :
```gradle
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 athttp://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.