[android-developers] Re: Button.setTextColor, how to make it work? Options

2009-09-17 Thread Jack Ha

For example, button.setTextColor(Color.CYAN) should work.

--
Jack Ha
Open Source Development Center
・T・ ・ ・Mobile・ stick together
The coverage you need at the price you want

The views, opinions and statements in this email are those of
the author solely in their individual capacity, and do not
necessarily represent those of T-Mobile USA, Inc.



On Sep 17, 7:22 am, WoodManEXP woodman...@gmail.com wrote:
 Experimenting with some UI ideas I wanted to change the color in a
 button view some time after it had been initially drawn. So it seemed
 like calling .setTextColor() should do it. But it does not cause the
 color of the button text to change.

 Have even tried calling .invalidate() to force a redraw, no luck.

 Does anyone know the procedure for changing the color of the text in
 a
 button after it has been initially drawn?

 Thank you!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Button.setTextColor, how to make it work? Options

2009-09-17 Thread WoodManEXP

Thanks Jack. I think I was confused about how to make the int that is
passed as a color.

On Sep 17, 11:44 am, Jack Ha jack...@t-mobile.com wrote:
 For example,button.setTextColor(Color.CYAN) should work.

 --
 Jack Ha
 Open Source Development Center
 ・T・ ・ ・Mobile・ stick together
 The coverage you need at the price you want

 The views, opinions and statements in this email are those of
 the author solely in their individual capacity, and do not
 necessarily represent those of T-Mobile USA, Inc.

 On Sep 17, 7:22 am, WoodManEXP woodman...@gmail.com wrote:



  Experimenting with some UI ideas I wanted to change thecolorin a
 buttonview some time after it had been initially drawn. So it seemed
  like calling .setTextColor() should do it. But it does not cause the
 colorof thebuttontext to change.

  Have even tried calling .invalidate() to force a redraw, no luck.

  Does anyone know the procedure for changing thecolorof the text in
  a
 buttonafter it has been initially drawn?

  Thank you!- Hide quoted text -

 - Show quoted text -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Button.setTextColor, how to make it work? Options

2009-09-17 Thread Raphael

If you want to permanently change the color scheme of the button,
please consider using a custom style:
http://d.android.com/guide/topics/ui/themes.html
R/

On Thu, Sep 17, 2009 at 7:22 AM, WoodManEXP woodman...@gmail.com wrote:

 Experimenting with some UI ideas I wanted to change the color in a
 button view some time after it had been initially drawn. So it seemed
 like calling .setTextColor() should do it. But it does not cause the
 color of the button text to change.

 Have even tried calling .invalidate() to force a redraw, no luck.


 Does anyone know the procedure for changing the color of the text in
 a
 button after it has been initially drawn?


 Thank you!

 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---