-1

Possible Duplicate:
Text with gradient in Android

I'm trying to make a button for my app with a white background and gradient-colored text. However, everything I've found gives advice for making only the background a gradient color using a separate XML file. Can someone please tell me if it's possible to have only the text of a button colored with a gradient and how to do so?

Community
  • 1
  • 1
JP409
  • 225
  • 1
  • 2
  • 13
  • int[] colors = {0, 0xFFFF0000, 0}; // red for the example mButton.setColor(new GradientDrawable(Orientation.RIGHT_LEFT, colors)); try it may be possible using it..i am not sure.. – DynamicMind Jan 14 '13 at 05:46

1 Answers1

1

Make a clickable textView with gradient color and set its background as you wish. Follow the link specified by @SidharthLele.

akkilis
  • 1,904
  • 14
  • 21