I need to create a view where products are compared (min 2, max 5). I had two thoughts:
Is there any suggestion on how to implement this view in a better way?
What you need is a GridLayout:
http://developer.android.com/reference/android/widget/GridLayout.html
Here's a useful tutorial:
http://www.techotopia.com/index.php/Working_with_the_Android_GridLayout_in_XML_Layout_Resources
A GridView however is completely unsuitable for your needs. It can only show equal width items that overflow to the next row when the width of the GridView has been filled.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With