幻灯切换为Android [英] Slide Toggle for Android

查看:105
本文介绍了幻灯切换为Android的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都知道的幻灯片切换为Android任何开源实现。默认的Andr​​oid切换(切换按钮)不是pretty的。我在寻找什么类似的iOS。我应该能够实现一个从头开始。但是,如果类似的话已经是可用的,那么我可以建立在其上。

在此先感谢精彩的计算器社区。

EDIT1:   我的意思iOS的幻灯片切换是UISwitch



EDIT2:只是要总结的答案。 Commonsware提供的线索。我结束了从4.0 to2.2.2移植回来的的开关的code。由于采用开源的code,后面的移植也不是很困难的。在code托管在git的枢纽。 <一href="http://github.com/pellucide/Android-Switch-Demo-$p$p-4.0/tree/master/">http://github.com/pellucide/Android-Switch-Demo-$p$p-4.0/tree/master/

从该项目
的屏幕截图   屏幕截图

解决方案

的iOS似乎并没有产生幻灯片切换,至少在该名称的基础上,谷歌搜索。而且,你没有提供你想要的东西的图像(或链接到的图像)。

的Andr​​oid 4.0增加了一个 开关 你也许能够反向移植到较早版本。你会看到它的样品中的API演示应用程序在你的模拟器:

Anyone know of any open source implementation of a slide toggle for android. The default android toggle(ToggleButton) is not pretty. I am looking for anything similar to iOS. I should be able to implement one from scratch. But if anything similar is already available, then i can build on it.

Thanks in advance to the wonderful stackoverflow community.

Edit1: What I meant by iOS Slide Toggle is UISwitch



Edit2: Just want to summarize the answer. Commonsware provided the clue. I ended up back porting the Switch code from 4.0 to2.2.2. Thanks to the open-sourced code, back porting was not very difficult. The code is hosted on git hub. http://github.com/pellucide/Android-Switch-Demo-pre-4.0/tree/master/

A screenshot from that project

解决方案

iOS does not seem to have a "slide toggle", at least under that name, based on a Google search. And, you did not provide an image (or a link to an image) of what you want.

Android 4.0 added a Switch that you might be able to backport to earlier versions. You will see samples of it in the API Demos app on your emulator:

这篇关于幻灯切换为Android的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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