I was interested in doing something like this as well. My app has 6 toggle buttons in a row on one line, and it doesn't quite fit on portrait screen. I wanted to make a custom toggle button, color, width, etc.
You could also make your own state-list drawable I think It's called. Anyway in the source of the s d k I think you can find the toggle button and then edit it, not sure though. On Jan 27, 7:08 pm, TreKing <[email protected]> wrote: > On Tue, Jan 25, 2011 at 10:43 PM, Eric Chow <[email protected]> wrote: > > How can I change the background color of a ToggleButton? > > Go to the documentation, find the entry for ToggleButton, then start > reading. There-in lies the answer. > > --------------------------------------------------------------------------- > ---------------------- > TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago > transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

