Android Open Source - Widget switch android-switch-backport






Project Summary

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+..

Web Site / Source Repository

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.

Project Detail

The following table is the detailed list of android-switch-backport.

ItemValue
Java File Count5
Supported screen sizes[mdpi, hdpi, xhdpi, xhdpiv16, mdpiv16, hdpiv16, xxhdpiv16]
Target SDK Version19
Minimum SDK Version7
Activity Count2




Resource Files

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.

null




Java Source Files

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