G’day!
I need to centered content (gallery items) by the middle if they have width less than gallery’s width.
How can I do that?
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.
If I am understanding your question correctly
Something like this might work:
If you call that in your onCreate or somewhere it should shift your gallery as close to the middle as it can given how many children it has.