is there a way to implement the following feature in my app? Should have a Gridview like behavier, but with different rowheights. Or is there another wigdet, which provide such a feature? (Adapter, n-columns, etc) I spent the last 3 days with trying and catching but i didn't get any matching solution
In the layout.xml, use a Linear Layout first, with horizontal orientation.
Within this linear layout, put 4 linear layouts, with vertical orientation, setting the weight attribute to 1 for all of them. (So that each of the column occupies same space).
Now, each of the four linear layouts, put the image view's or buttons and give the weight accordingly. So if the weight is 1, 1, 2 for 3 buttons in a linear layout, the 3rd button size appears twice the size of first or second.
So this will surely solve your problem. But this is only true when you have static no. of levels. You need to make it generic based on the no. of levels, and still it will work.
Let me know if you have any questions.
Nithin
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