# ScalingLayout **Repository Path**: mirrors_iammert/ScalingLayout ## Basic Information - **Project Name**: ScalingLayout - **Description**: With Scaling Layout scale your layout on user interaction. - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2022-01-10 - **Last Updated**: 2025-12-04 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # ScalingLayout Scale your layout on user interaction. [Live Demo](https://www.youtube.com/watch?v=wA41H0UMoHQ) Motivated 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. ## Demo ## Fab Demo ## Spotify Search Demo ## Usage ```xml ``` ```java scalingLayout.expand(); //use this if you want to expand all scalingLayout.collapse(); //user this if you want to collapse view to initial state. scalingLayout.setProgress(float progress); //1 is fully expanded, 0 is initial state. ``` ## Listener ```java scalingLayout.setListener(new ScalingLayoutListener() { @Override public void onCollapsed() {} @Override public void onExpanded() {} @Override public void onProgress(float progress) {} }); ``` ## Attribute ```app:radiusFactor``` value is between 0 and 1 float value. 1 = full rounded corner. 0 = no rounded corner. ## ScalingLayoutBehaviour ```xml ``` ## Download Buy Me a Coffee at ko-fi.com ```gradle maven { url 'https://jitpack.io' } ``` ```gradle dependencies { compile 'com.github.iammert:ScalingLayout:1.2.1' } ``` License -------- Copyright 2017 Mert Şimşek. 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.