Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/armcha/elasticview
Elastic view is a regular CardView, which can flex from user touches
https://github.com/armcha/elasticview
android cardview elastic flex kotlin motionevent
Last synced: 4 days ago
JSON representation
Elastic view is a regular CardView, which can flex from user touches
- Host: GitHub
- URL: https://github.com/armcha/elasticview
- Owner: armcha
- Created: 2018-10-25T10:51:56.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2018-11-13T11:29:34.000Z (about 6 years ago)
- Last Synced: 2024-10-27T06:39:14.035Z (18 days ago)
- Topics: android, cardview, elastic, flex, kotlin, motionevent
- Language: Kotlin
- Homepage:
- Size: 8.2 MB
- Stars: 598
- Watchers: 13
- Forks: 64
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ElasticView
![Download](https://api.bintray.com/packages/armcha/maven/ElasticView/images/download.svg)
[![API](https://img.shields.io/badge/API-21%2B-brightgreen.svg?style=flat)](https://android-arsenal.com/api?level=21)
[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-ElasticView-brightgreen.svg?style=flat)](https://android-arsenal.com/details/1/7274)Elastic view is a regular **CardView**, which can **flex** from user touchesπͺ
**Kotlin** β€οΈ
![](screens/third.gif)
Let's see it in action π»π²
![](screens/first.gif)
![](screens/second.gif)### Download sample [apk](https://github.com/armcha/ElasticView/raw/master/screens/sample.apk) :arrow_down:
The current minSDK version is API level 21.
### DownloadGradle:
```groovy
implementation 'com.github.armcha:ElasticView:0.2.0'
```## Setup and usage
You can use it as a regualar CardView.```xml
```
## Customization
For now, you can only change flexibility for the viewfrom code
```kotlin
elasticView.flexibility = 8f
```or from xml
```xml
```**Note the flexibility must be between [1f..10f] βοΈ**
That's all :ok_hand:
### Contact :book:
:arrow_forward: **Email**: [email protected]
:arrow_forward: **Medium**: https://medium.com/@chatikyan
:arrow_forward: **Twitter**: https://twitter.com/ArmanChatikyan
:arrow_forward: **Google+**: https://plus.google.com/+ArmanChatikyan
:arrow_forward: **Website**: https://armcha.github.io/
License
--------ElasticView
Copyright (c) 2018 Arman Chatikyan (https://github.com/armcha/ElasticView).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.