I need to draw a rounded rectangle in the Android UI. Having the same rounded rectangle for TextView and EditText would also be helpful.
I need to draw a rounded rectangle in the Android UI. Having the same
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.
In your layout xml do the following:
By changing the
android:radiusyou can change the amount of “radius” of the corners.<solid>is used to define the color of the drawable.You can use replace
android:radiuswithandroid:bottomLeftRadius,android:bottomRightRadius,android:topLeftRadiusandandroid:topRightRadiusto define radius for each corner.