什么是2.2版Android开关小部件的最佳后端?

时间:2013-02-21 17:18:06

标签: android

我正在寻找2.2的android开关小部件的稳定backport。请推荐您正在使用的开源库。

2 个答案:

答案 0 :(得分:7)

https://github.com/BoD/android-switch-backport

https://github.com/pellucide/Android-Switch-Demo-pre-4.0/tree/master/android-switch-demo

有两个简单的选择。

我还发现将SeekBar子类化为获得所需效果相当简单(非常类似于iOS开关)。

答案 1 :(得分:1)

我更喜欢thisthis。我认为第二个比你想象的要多得多,并且如果你选择它,请记得安装Maven。