### Bind Sampling Source in Java Source: https://liquidglass.qmdeve.com/quick-start/AndroidLiquidGlassView Connect the LiquidGlassView to a target ViewGroup to enable the sampling effect. ```java ViewGroup content = findViewById(R.id.content_container); LiquidGlassView liquidGlassView = findViewById(R.id.liquidGlassView); // Bind the sampling source liquidGlassView.bind(content); ``` -------------------------------- ### LiquidGlassView Methods Source: https://liquidglass.qmdeve.com/quick-start/AndroidLiquidGlassView Methods available for configuring the LiquidGlassView instance. ```APIDOC ## LiquidGlassView Methods ### bind(ViewGroup source) - **Description**: Binds the sampling source view to the LiquidGlassView. ### setCornerRadius(float px) - **Description**: Sets the corner radius in pixels (0dp-99dp). Default is 40dp. ### setRefractionHeight(float px) - **Description**: Sets the refraction height in pixels (12dp-50dp). Default is 20dp. ### setRefractionOffset(float px) - **Description**: Sets the refraction offset in pixels (20dp-120dp). Default is 70dp. ### setTintColorRed(float red) - **Description**: Sets the tint color red component (0f-1f). Default is 1.0f. ### setTintColorGreen(float green) - **Description**: Sets the tint color green component (0f-1f). Default is 1.0f. ### setTintColorBlue(float blue) - **Description**: Sets the tint color blue component (0f-1f). Default is 1.0f. ### setTintAlpha(float alpha) - **Description**: Sets the tint visibility (0f-1f). Default is 0.0f. ### setDispersion(float dispersion) - **Description**: Sets the dispersion effect (0f-1f). ### setBlurRadius(float radius) - **Description**: Sets the blur radius. Default is 0f. ### setDraggableEnabled(boolean enable) - **Description**: Enables or disables dragging. Default is false. ### setElasticEnabled(boolean enable) - **Description**: Enables or disables the elastic effect. Default is false. ### setTouchEffectEnabled(boolean enable) - **Description**: Enables or disables the touch effect. Default is false. ``` -------------------------------- ### License Agreement for AndroidLiquidGlassView Source: https://liquidglass.qmdeve.com/ The software is provided under the MIT license terms. ```text Copyright ©️ 2025-2026 Donny Yang Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ``` -------------------------------- ### Add LiquidGlass dependency Source: https://liquidglass.qmdeve.com/getting-started Include the library in your module's build.gradle file to access core functionality. ```groovy dependencies { implementation 'com.qmdeve.liquidglass:core:1.0.5' } ``` ```kotlin dependencies { implementation("com.qmdeve.liquidglass:core:1.0.5") } ``` -------------------------------- ### Define LiquidGlassView in XML Layout Source: https://liquidglass.qmdeve.com/quick-start/AndroidLiquidGlassView Add the LiquidGlassView component to your layout file, ensuring it is positioned relative to the content container it will sample. ```xml ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.