ls02 wrote:
> I didn't find simple ay of doing this. setBackground is not what I
> want, it chnages the entire button including borders, not just the
> background.
> 
> On Feb 27, 1:12 pm, jotobjects <[email protected]> wrote:
>> yes - See android.widget.Button documentation for details
>>
>> On Feb 27, 8:37 am, ls02 <[email protected]> wrote:
>>
>>
>>
>>> How can I set button background color at run time?- Hide quoted text -
>> - Show quoted text -
> 

You cannot just set a button's background to a color. The button's
existing background is a StateListDrawable containing a series of
nine-patch images that define the button border as well as the background.

http://stackoverflow.com/questions/2173936/how-to-set-background-color-of-a-view
http://stackoverflow.com/questions/2276438/is-it-possible-to-have-a-button-with-a-background-image-with-text-on-top

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

Android 2.0 Programming Books: http://commonsware.com/books

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

Reply via email to