I want to create custom button and I need it to be circle. How can I create a circle button?
I do not think that be possible with draw9patch.
Also I do not know how to make custom button!
Do you have any suggestion?
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.
Use xml drawable like this:
Save the following contents as
round_button.xmlindrawablefolderAndroid Material Effect: Although
FloatingActionButtonis a better option, If you want to do it using xml selector, create a folderdrawable-v21inresand save anotherround_button.xmlthere with following xmlAnd set it as background of
Buttonin xml like this:Important: