When writing xml files, I know following is working:
android:padding="20px"
Are there other valid value formats available for padding? e.g.
android:padding="10px 20px 10px 20px"
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.
You can use
android:paddingLeft , android:paddingRight , android:paddingTop , android:paddingBottomseparately.Alternatively, since API v17, to properly support bidirectional text (LTR & RTL), change Left to Start and Right to End in all occurances. E.g.
android:paddingLeftbecomesandroid:paddingStart.You can set padding using coding .
setPadding (int left, int top, int right, int bottom)