title: On/Off Toggle Button in Preferences & Action Bar - Ice Cream Sandwich Style
body: <p>I am referring to the blue ON/OFF styling as seen in the default Android Settings app on ICS phones. It can also be seen here: <a href="http://android-developers.blogspot.com/2012/02/android-design-v2-now-with-stencils.html">http://android-developers.blogspot.com/2012/02/android-design-v2-now-with-stencils.html</a>
  I want to put them in a Preference screen, would I have to use a custom preference widget?</p>
  
  <p>Also, is it easy to put toggle buttons in the Action Bar? It seems to be possible since it is done  for Wifi Settings in the default Android Settings on ICS, but it is probably a custom menu item?</p>
  
  <p>Any help is greatly appreciated.</p>