什么是Android的开关部件为2.2最好的反向移植? [英] What is the best backport of Android switch widget for 2.2?

查看:101
本文介绍了什么是Android的开关部件为2.2最好的反向移植?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

进出口寻找Android的开关小部件2.2稳定的反向移植。请推荐您使用开源库。

Im looking for a stable backport of android switch widget for 2.2. Please recommend open source library that you are using.

推荐答案

<一个href="https://github.com/BoD/android-switch-backport">https://github.com/BoD/android-switch-backport

<一个href="https://github.com/pellucide/Android-Switch-Demo-$p$p-4.0/tree/master/android-switch-demo">https://github.com/pellucide/Android-Switch-Demo-$p$p-4.0/tree/master/android-switch-demo

有几个简单的选项。

我还发现它比较简单的子类SeekBar以获得所期望的效果(非常类似于IOS交换机)。

I also found it relatively simple to subclass SeekBar to get the effect desired (very similar to the iOS switch).

这篇关于什么是Android的开关部件为2.2最好的反向移植?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆