I would recommend you specify <shape> drawables in xml for the background, using <gradient> to achieve your gradient.
See some details here: http://developer.android.com/guide/topics/resources/drawable-resource.html#Shape Also, you can specify different states, see: http://developer.android.com/reference/android/content/res/ColorStateList.html On Jan 19, 5:22 am, "pramod.deore" <[email protected]> wrote: > Hi, everybody > I want to change color of button. Now I am done this with > > button.getBackground().setColorFilter(new > LightingColorFilter(0xFF9933, 0x0CC000)); > > But is it possible to 1)change button color like - At the left top > corner have dark color and color become faint as we move to the right > bottom corner. > > 2) Can we change the color of border of button? > > Thanks -- 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

