Is there any way to set the color and background image for a button? I want a green button with a transparent .png but it seems you can only have one or the other.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
(Don’t) Use an ImageView
Set your set your green button background image as the background, and your transparent png as the src. You can apply a selector to the background just the same as you would to a button also…
EDIT: Actually there is an ImageButton already made for this, you should be using that instead. Slipped my mind.