Need to create Android toggle button in Iphone style

by Balraj Singh » Fri, 20 May 2011 09:34:08 GMT

Sponsored Links

I have a requirement to create a toggle button in Android but in
Iphone style something as shown in link below:- 

Can anyone tell me how to implement this or if provide the code for


Other Threads

1. Changing the battery icon position

Hi everyone,

I want to take my activity the entire screen of the device and I could
do that by making appropriate changes in the android manifest
file(Theme.NoTitleBar.Fullscreen). But, now I just want battery status
icon on my screen alongwith other components of my activity. Is that

If yes, then how??

I tried to use battery manager but, it does not expose such
interfaces. I guess its mainly useful for checking and using battery
life status and firing intents appropriately.

Kindly help.




2. Controlling the rendering order of child views

     I have an application wherein I extend the ViewGroup class for
laying out the child views as per my requirements. Some of the child
views are instances of ImageView class and have partly transparent
background. Given the alpha blending is order dependent, I would like
to control the rendering order of the ImageView inside the my own
Layout class which extends ViewGroup. Could someone please suggest how
could I achieve the same?

Thanks in advance,


3. Changing button image based on user input.

4. Multiple Notifications - PendingIntents with different data?

5. Listening to touch events outside application

6. PLEASE HELP!!! may i develop app for Android 1.6 using SDK 2.x?

7. App rating system and eliciting constructive criticism