What are your "custom buttons"?  Why not make them extend the Button
class so you inherit the default behavior?  I have created some
default buttons, but I only did so to selectively override default
behavior.

Try inspecting (new Button(this)).getBackground();

and see if that helps you.





On Jul 14, 8:52 am, Ajay <[email protected]> wrote:
> Hi,
>    Is there a way I could get the color that is used when a button is
> pressed? I know that the button uses a default selector xml that
> consists of the pressed image. But, I am having some custom buttons
> for which I want it to be close to the default image used for pressed
> state.
>
> Thank you,
> AJ

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