Need to create Android toggle button in Iphone style

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


Sponsored Links
 Hi,

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

 http://fc03.deviantart.net/fs71/f/2010/215/2/0/iPhone_Toggle_Button_by_mitchjinfo.png 

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

-- 



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
possible??

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.

TIA.

Regards,
Ankita

-- 

2. Controlling the rendering order of child views

Hi,
     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,
DivKis

-- 

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