ToggleButton - how to implement iPhone-style ToggleButton?

by zhangxiyuan » Sun, 31 May 2009 17:31:16 GMT

Sponsored Links

I think Android does not provide iPhone style toggle button?
Look at the picture below, when I just want to set ON|OFF for some
settings, I think the iPhone style and Android style ToggleButton are
both OK for me, but I have an application, I want to migrate it from
iPhone SDK -> Android Platform?

Can someone give me a hint about how to do that?

Because the iPhone style ToggleButton has a slider in it, so it
supports drag&drop, Do I have to implement the TouchEvent listener?


iPhone style ToggleButton:

Other Threads

1. Needed - iPhone and/or Android/Java Developer, Mobile Applications, Arizona

Full-Time direct hire opportunity exists for Sr. Mobile Applications
Developers. iPhone and/or Android Platform SDK tools is required.
iPhone, Blackberry etc... Java experience helpful.

Six Digit salary DOE, comprehensive benefit package and opportunity to
join a cutting edge organization with aggressive growth plans. Come
live and work in beautiful Phoenix, AZ.

Relocation available.

For more information please forward a confidential resume to

At this time, the company cannot sponsor H1B candidates.


2. Help~~ We need to build a kernel driver for Android v2.1


We need to build a kernel mode driver for our product.
We download the source code from here,,
and follow what it says. (Our platform is Unbutu 8.10.)
But we can find the path of the kernel source for building kernel
For example, we always write this in Makfile :
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules
We want to redirect the path, lib/modules/$(shell uname -r)/build
to Android kernel source path.
(That how we do to build different OS versions in one platform.)
Could you tell us where the path is or how to do this?

Ps. We would write a user space driver later, maybe in Q2. But we need
to demo at end of Feb. Therefore, we need to make the current kernel
mode driver working well.



3. Android for Car Audio

4. Who sends any Nexus One OTA updates?

5. Android STK(Sim Application Toolkit) -

6. Android discussion + meetings in Montreal + Canada

7. Intent.putExtra for an arbitrary data type