How can I draw a rectangle that have a black border and white background? I don’t understand shape tags in xml! Both solid and stroke do same thing? please let me understand.
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.
Use shapes to make the white rectangle you need and Stroke to get the black border you require . Define a xml for this in your drawables folder and use .
Refer to this link
http://developer.android.com/guide/topics/resources/drawable-resource.html#Shape