Overview of ShadowLayout features
masterShadowLayout is a versatile layout component that allows any View to enjoy customizable shadows and system-level shape/selector functionality without needing extra drawable files.
Shadow Customization:
- Modify shadow color values.
- Set uniform or individual corner radii.
- Adjust X and Y offsets.
- Control shadow diffusion (size).
- Hide shadows on specific sides or completely.
- Dynamically modify shadows via code.
Shape and Selector Features:
- Supports
pressed,selected, andripplestates. - Background color and stroke (border) settings.
- Gradient background support.
- Clickable/non-clickable state backgrounds.
- Binding to
TextViewto react to text or color changes. - Support for image backgrounds and image selectors.
- View clipping (useful for players or custom rounded corners).