B4A
MP_MaterialFX is a powerful collection of modern visual effect libraries designed specifically for Android developers using B4A.
This suite helps developers create professional, smooth, and visually rich Android user interfaces without dealing with complicated graphics programming or complex implementations.
With simple and readable APIs, you can easily add modern UI animations and effects to your applications using only a few lines of code.
The main goals of MP_MaterialFX are:
Ease of use
Smooth and optimized performance
High Android compatibility
Modern Material UI and Neon-style effects
MP_ShaderFX — Animated Gradient & Shader Effects
- Create animated gradients on Views
- Aurora-style smooth color movement
- Control speed, angle, scale, and direction
- Supports Pause, Resume, Stop, and Refresh
MP_TextShaderFX — Animated Text Shader Effects
- Apply animated gradients to text
- Compatible with Label and Button
- Supports Reverse and Mirror modes
- Optional text shadow support
MP_GlowFX — Glow & Light Effects
- Add glow effects around Views
- Includes multiple glow styles:
- Normal Glow
- Soft Glow
- Strong Glow
- Ambient Glow
- Full control over color, intensity, and glow radius
MP_NeonFX — Neon Lighting Effects
- Create realistic neon lighting effects
- Supports:
- Outer Neon
- Inner Neon
- Perfect for Neon UI and Cyber-style designs
MP_ShimmerFX — Shimmer Animation
- Animated light sweep effect across Views
- Ideal for Loading and Skeleton UI
- Adjustable speed, angle, transparency, and light width
🌫 MP_BlurFX — Blur Effects
- Apply blur effects to Views or backgrounds
- Uses RenderEffect on modern Android versions
- Custom blur implementation for older Android versions
- Supports runtime update and removal
MP_RippleFX — Touch Ripple Effect
- Material ripple effect on touch
- Manual ripple triggering support
- Compatible with rounded corner Views
MP_ShadowFX — Advanced Shadow Effects
- Real shadow rendering for Views
- Custom shadow color support (API 28+)
- Control blur, offset, and shadow intensity
- Compatible with rounded Views
MP_SnakeBorderFX — Animated Snake Border
- Animated snake-style border around Views
- Smooth movement around the View edges
- Supports:
- Solid Mode
- Fade Mode
- Automatic Corner Radius detection
- Adjustable color, thickness, segment length, and speed
- Supports Head Alpha and Tail Alpha customization
- Includes Pause, Resume, and Stop support
MP_ToastFX — Advanced Custom Toast
- Fully customizable Android Toast
- Customize background, text color, and transparency
- Supports Corner Radius, Padding, and Text Size
- Custom font support
- Gradient and Border support
- Bitmap icon support
- Multi-line Toast support
- Display positions:
- Top
- Bottom
- Center
- Built-in Toast Queue system
- ReplaceCurrent support
MP_BurstFX — Particle & Explosion Engine
- Create burst and particle effects on Views
- Emit particles from screen center or a specific View
- Supports multiple Bitmap particles
- Movement directions:
- TOP
- BOTTOM
- LEFT
- RIGHT
- CENTER
- Control particle count, size, and spread
- Random particle sizing
- Random rotation support
- Scale fade effect during disappearance
- Alpha and animation duration control
- Multiple interpolators:
- Linear
- Accelerate
- Decelerate
- AccelerateDecelerate
- PullX and PullY force support
- Automatically removes particle Views after animation to prevent memory leaks
- Like animations
- Reaction effects
- Celebration UI
- Gaming UI
- Interactive effects
Key Features of MP_MaterialFX
- Designed specifically for B4A
- Clean and easy-to-use API
- Smooth performance with Hardware Acceleration
- Compatible with most Android Views
- Works with dynamic layouts
- Automatically adapts to View size changes at runtime
- Built using standard Android and Java APIs
- Stable, optimized, and production-ready
Author:
MohammadReza Pirzadeh (MP)
━━━━━━━━━━━━━━━