A backport of the Switch widget (http://developer.android.com/reference/android/widget/Switch.html) that was introduced on Android 4. This port works on Android 2.1+..
android-switch-backport is hosted in the following web site
https://github.com/BoD/android-switch-backport
If you think the Android project android-switch-backport listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
The following table is the detailed list of android-switch-backport.
Item | Value |
---|---|
Java File Count | 5 |
Supported screen sizes | [mdpi, hdpi, xhdpi, xhdpiv16, mdpiv16, hdpiv16, xxhdpiv16] |
Target SDK Version | 19 |
Minimum SDK Version | 7 |
Activity Count | 2 |
There are 15 image files in android-switch-backport. The names of the image files are listed as follows.
switch_bg_disabled_holo_dark.9.png switch_bg_disabled_holo_light.9.png switch_bg_focused_holo_dark.9.png switch_bg_focused_holo_light.9.png switch_bg_holo_dark.9.png switch_bg_holo_light.9.png switch_thumb_activated_holo_dark.9.png switch_thumb_activated_holo_light.9.png switch_thumb_disabled_holo_dark.9.png switch_thumb_disabled_holo_light.9.png switch_thumb_holo_dark.9.png switch_thumb_holo_light.9.png switch_thumb_holo_light_v2.9.png switch_thumb_pressed_holo_dark.9.png switch_thumb_pressed_holo_light.9.png
The following screenshort is generated from the image listed above.
android-switch-backport has the following Java source files.
org.jraf.android.backport.switchwidget.Switch.java org.jraf.android.backport.switchwidget.SwitchPreference.java org.jraf.android.backport.switchwidget.TwoStatePreference.java org.jraf.android.backport.switchwidget.sample.MainActivity.java org.jraf.android.backport.switchwidget.sample.PreferenceActivity.java