{"id":13493151,"url":"https://github.com/iammert/ScalingLayout","last_synced_at":"2025-03-28T11:31:48.671Z","repository":{"id":39618170,"uuid":"105440603","full_name":"iammert/ScalingLayout","owner":"iammert","description":"With Scaling Layout scale your layout on user interaction.","archived":false,"fork":false,"pushed_at":"2023-05-28T15:10:34.000Z","size":8367,"stargazers_count":3330,"open_issues_count":9,"forks_count":318,"subscribers_count":67,"default_branch":"master","last_synced_at":"2024-10-29T20:03:08.034Z","etag":null,"topics":["android","animation","coordinatorlayout","layout","view"],"latest_commit_sha":null,"homepage":null,"language":"Java","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/iammert.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}},"created_at":"2017-10-01T12:28:34.000Z","updated_at":"2024-10-10T18:17:43.000Z","dependencies_parsed_at":"2022-07-14T03:40:35.764Z","dependency_job_id":"27bd709d-8cce-45fe-94c5-d834abfbae67","html_url":"https://github.com/iammert/ScalingLayout","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iammert%2FScalingLayout","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iammert%2FScalingLayout/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iammert%2FScalingLayout/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iammert%2FScalingLayout/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iammert","download_url":"https://codeload.github.com/iammert/ScalingLayout/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245719496,"owners_count":20661272,"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","animation","coordinatorlayout","layout","view"],"created_at":"2024-07-31T19:01:12.724Z","updated_at":"2025-03-28T11:31:48.653Z","avatar_url":"https://github.com/iammert.png","language":"Java","funding_links":["https://ko-fi.com/P5P872LP'"],"categories":["Java","Library"],"sub_categories":[],"readme":"# ScalingLayout \nScale your layout on user interaction. [Live Demo](https://www.youtube.com/watch?v=wA41H0UMoHQ)\n\nMotivated by layout in [Blinkist](https://play.google.com/store/apps/details?id=com.blinkslabs.blinkist.android) app and search bar in [Spotify](https://play.google.com/store/apps/details?id=com.spotify.music) app.\n\n\u003cimg src=\"https://raw.githubusercontent.com/iammert/ScalingLayout/master/art/cover_scaling.png\"/\u003e\n\n## Demo\n\u003cimg src=\"https://github.com/iammert/ScalingLayout/blob/master/art/gif_behavior.gif\"/\u003e\n\n## Fab Demo\n\u003cimg src=\"https://github.com/iammert/ScalingLayout/blob/master/art/gif_fab.gif\"/\u003e\n\n## Spotify Search Demo\n\u003cimg src=\"https://github.com/iammert/ScalingLayout/blob/master/art/gif_searchbar.gif\"/\u003e\n\n## Usage\n```xml\n\u003ciammert.com.view.scalinglib.ScalingLayout\n        android:id=\"@+id/scalingLayout\"\n        android:layout_width=\"300dp\"\n        android:layout_height=\"48dp\"\n        app:radiusFactor=\"1\"\u003e\n        \n        \u003c!-- Your content here --\u003e\n        \n\u003c/iammert.com.view.scalinglib.ScalingLayout\u003e\n```\n\n```java\nscalingLayout.expand(); //use this if you want to expand all\nscalingLayout.collapse(); //user this if you want to collapse view to initial state.\nscalingLayout.setProgress(float progress); //1 is fully expanded, 0 is initial state.\n```\n\n## Listener\n```java\nscalingLayout.setListener(new ScalingLayoutListener() {\n    @Override\n    public void onCollapsed() {}\n\n    @Override\n    public void onExpanded() {}\n\n    @Override\n    public void onProgress(float progress) {}\n});\n```\n\n## Attribute\n```app:radiusFactor``` value is between 0 and 1 float value. 1 = full rounded corner. 0 = no rounded corner.\n\n## ScalingLayoutBehaviour\n\u003cimg src=\"https://github.com/iammert/ScalingLayout/blob/master/art/gif_behavior.gif\"/\u003e\n\n```xml\n\u003ciammert.com.view.scalinglib.ScalingLayout\n        android:id=\"@+id/scalingLayout\"\n        android:layout_width=\"300dp\"\n        android:layout_height=\"48dp\"\n        app:radiusFactor=\"1\"\n        app:layout_behavior=\"iammert.com.view.scalinglib.ScalingLayoutBehavior\"\u003e\n        \n        \u003c!-- Your content here --\u003e\n        \n\u003c/iammert.com.view.scalinglib.ScalingLayout\u003e\n```\n\n## Download\n\u003ca href='https://ko-fi.com/P5P872LP' target='_blank'\u003e\u003cimg height='36' style='border:0px;height:36px;' src='https://az743702.vo.msecnd.net/cdn/kofi1.png?v=0' border='0' alt='Buy Me a Coffee at ko-fi.com' /\u003e\u003c/a\u003e\n\n\n```gradle\nmaven { url 'https://jitpack.io' }\n```\n\n```gradle\ndependencies {\n  compile 'com.github.iammert:ScalingLayout:1.2.1'\n}\n```\nLicense\n--------\n\n\n    Copyright 2017 Mert Şimşek.\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\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiammert%2FScalingLayout","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiammert%2FScalingLayout","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiammert%2FScalingLayout/lists"}