android:layout_margin or android:padding does affect all four directions?
It looks like it sets ‘top’ and ‘left’.
Couldn’t find the doc to confirm.
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.
Yes, it affects all sides.
android:layout_margin– Specifies extra space on the left, top, right and bottom sides of the view.android:padding– Sets the padding, in pixels, of all four edges.I think there is an error in your
xmlfile.