{"id":13428810,"url":"https://github.com/armcha/ElasticView","last_synced_at":"2025-03-16T02:30:32.514Z","repository":{"id":143052463,"uuid":"154655146","full_name":"armcha/ElasticView","owner":"armcha","description":"Elastic view is a regular CardView, which can flex from user touches","archived":false,"fork":false,"pushed_at":"2018-11-13T11:29:34.000Z","size":8595,"stargazers_count":596,"open_issues_count":3,"forks_count":64,"subscribers_count":12,"default_branch":"master","last_synced_at":"2025-03-12T18:04:50.506Z","etag":null,"topics":["android","cardview","elastic","flex","kotlin","motionevent"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/armcha.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2018-10-25T10:51:56.000Z","updated_at":"2025-01-07T03:28:26.000Z","dependencies_parsed_at":"2023-06-09T08:15:43.976Z","dependency_job_id":null,"html_url":"https://github.com/armcha/ElasticView","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/armcha%2FElasticView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/armcha%2FElasticView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/armcha%2FElasticView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/armcha%2FElasticView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/armcha","download_url":"https://codeload.github.com/armcha/ElasticView/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243815576,"owners_count":20352194,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","cardview","elastic","flex","kotlin","motionevent"],"created_at":"2024-07-31T01:01:05.704Z","updated_at":"2025-03-16T02:30:32.466Z","avatar_url":"https://github.com/armcha.png","language":"Kotlin","funding_links":[],"categories":["Libraries","Kotlin"],"sub_categories":[],"readme":"# ElasticView\n\n![Download](https://api.bintray.com/packages/armcha/maven/ElasticView/images/download.svg)\n[![API](https://img.shields.io/badge/API-21%2B-brightgreen.svg?style=flat)](https://android-arsenal.com/api?level=21)\n[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-ElasticView-brightgreen.svg?style=flat)](https://android-arsenal.com/details/1/7274)\n\nElastic view is a regular **CardView**, which can **flex** from user touches💪\n\n**Kotlin** ❤️  \n\n![](screens/third.gif)\n\nLet's see it in action 💻📲\n\n\n![](screens/first.gif)\n![](screens/second.gif)\n\n### Download sample [apk](https://github.com/armcha/ElasticView/raw/master/screens/sample.apk) :arrow_down:\n\nThe current minSDK version is API level 21.\n### Download \n\nGradle:\n```groovy\nimplementation 'com.github.armcha:ElasticView:0.2.0'\n```\n\n## Setup and usage\nYou can use it as a regualar CardView.\n\n```xml\n \u003cio.armcha.elasticview.ElasticView\n        android:id=\"@+id/imageElasticView\"\n        android:layout_width=\"...\"\n        android:layout_height=\"...\"\n        app:cardCornerRadius=\"10dp\"\n        app:cardElevation=\"5dp\"\u003e\n  \n        \u003cChildView.../\u003e\n        \u003c!--or without childView--\u003e\n  \n\u003c/io.armcha.elasticview.ElasticView\u003e\n```\n\n## Customization\nFor now, you can only change flexibility for the view\n\nfrom code\n\n```kotlin\nelasticView.flexibility = 8f\n```\n\nor from xml\n\n```xml\n \u003cio.armcha.elasticview.ElasticView\n        android:id=\"@+id/imageElasticView\"\n        android:layout_width=\"...\"\n        android:layout_height=\"...\"\n        app:flexibility=\"7\"\n        app:cardCornerRadius=\"10dp\"\n        app:cardElevation=\"5dp\"/\u003e\n```\n\n**Note the flexibility must be between [1f..10f] ❗️**\n\n\nThat's all :ok_hand:\n\n### Contact :book:\n\n:arrow_forward:  **Email**: chatikyana@gmail.com\n\n:arrow_forward:  **Medium**: https://medium.com/@chatikyan\n\n:arrow_forward:  **Twitter**: https://twitter.com/ArmanChatikyan\n\n:arrow_forward:  **Google+**: https://plus.google.com/+ArmanChatikyan\n\n:arrow_forward:  **Website**: https://armcha.github.io/\n\nLicense\n--------\n\n      ElasticView\n      Copyright (c) 2018 Arman Chatikyan (https://github.com/armcha/ElasticView).\n\n      Licensed under the Apache License, Version 2.0 (the \"License\");\n      you may not use this file except in compliance with the License.\n      You may obtain a copy of the License at\n\n         http://www.apache.org/licenses/LICENSE-2.0\n\n      Unless required by applicable law or agreed to in writing, software\n      distributed under the License is distributed on an \"AS IS\" BASIS,\n      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n      See the License for the specific language governing permissions and\n      limitations under the License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farmcha%2FElasticView","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farmcha%2FElasticView","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farmcha%2FElasticView/lists"}