Can anyone help me create an android layout like the image below.
It has two columns to store images.
Each image has the same width.
Thanks so much,

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.
The easiest way would be to have two list views side by side and connect their onScroll() methods to scroll each other whenever one them is scrolled. (Don’t forget to use a flag that you’re scrolling programmatically, or you’ll get StackOverflowError (kinda ironic, yeah 🙂 due to infinite recursion). You can shift one of them by scrolling by half the images’s height.
This is kind of a cheat though. Better way would be to make a custom layout derived from RelativeLayout that can store ids of last and second to last Views added to it. When next one is added, lay it out to be layout_below=”@id/second_to_last”, then the newly added View becomes last, the previous last – second to last and next time you’ll be adding a view under it. (Yeah, i know, not exactly what you’d call a clear description 🙂 but feel free to ask further questions)