Google launcher-style implementation of switch (enable/disable) icon. This library is compatible from API 15 (Android 4.0.3). SwitchIconView extends from AppCompatImageView so you can set icon with app:srcCompat. Set any icon (vector or image) to SwitchIconView and enjoy a switchable icon in your app. Use app:si_tint_color to set color to icon. The default color is black. Use app:si_animation_duration if you want to change switching state animation duration. Use app:si_no_dash if you don't want to draw dash, when icon is disabled. Use app:si_disabled_alpha to set alpha when icon disabled. The default alpha is .5.
Features
- This library is compatible from API 15 (Android 4.0.3)
- Add it in your root build.gradle at the end of repositories
- Set any icon (vector or image) to SwitchIconView and enjoy switchable icon in your app
- Use app:si_tint_color to set color to icon. Default color is black
- Set color when icon disabled. Default color is equals
- Set alpha when icon disabled
License
Apache License V2.0Follow Android-SwitchIcon
Other Useful Business Software
$300 Free Credits for Your Google Cloud Projects
Launch your next project with $300 in free Google Cloud credits—no strings attached. Test, build, and deploy without risk. Use your credits across the entire Google Cloud platform to find what works best for your needs. After your credits are used, continue with always-free tier services. Only pay when you're ready to scale. Sign up in minutes and start exploring.
Rate This Project
Login To Rate This Project
User Reviews
Be the first to post a review of Android-SwitchIcon!