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

Project Samples

Project Activity

See All Activity >

Categories

Icon Sets, Launchers

License

Apache License V2.0

Follow Android-SwitchIcon

Android-SwitchIcon Web Site

Other Useful Business Software
Our Free Plans just got better! | Auth0 Icon
Our Free Plans just got better! | Auth0

With up to 25k MAUs and unlimited Okta connections, our Free Plan lets you focus on what you do best—building great apps.

You asked, we delivered! Auth0 is excited to expand our Free and Paid plans to include more options so you can focus on building, deploying, and scaling applications without having to worry about your security. Auth0 now, thank yourself later.
Try free now
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Android-SwitchIcon!

Additional Project Details

Operating Systems

Android

Programming Language

Kotlin

Related Categories

Kotlin Icon Sets, Kotlin Launchers

Registered

2023-02-08