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. resizing bitmap for seting wallpaper

i'm making an app that sets the wallpaper on click on image.
i take bitmap from the imageview and setwallpaper using
but the size of image is not exactly what is needed.
please give me code to resize the bitmap. thanks


2. Algorithm for building 3D shapes with GL_TRIANGLE_STRIP needed

I am looking for a good way to triangulate for building shapes with
GL_TRIANGLE_STRIP. I made a working algorith and working code for
building 3D shapes a few years ago. This has worked on M3G, Java3D and
Symbian Open GL C++. It does for some reason not work like it should
on Android Open GL. The shapes that I try to build do not look like
they should here.

I am calculating the points to the 3d shapes from mathematical
formulas, but I need to find a better way to triangulate these points,
so I build the 3d shapes. Does anyone know a good algorithm for this
or maybe some code that I can use?


3. [ WTA-NUBIE ] Apakah root saya berhasil di Incredible??

4. Salam Kenal - Sekalian WTA : LG P500 restart randomly

5. Proxy development (in source)

6. How to add horizontal scrollbar at runtime?

7. resume issue