I have to implement a layout like shown in the diagram, and I do not know the best combination to achieve the required design. I'm designing for the 7" tablet and want the design to stretch well on the 10"
I assume layouts like 1, 2, 3, 4, 5 are LinearLayouts, correct?
*What is the activity layout? I tried the RelativeLayout but I could NOT distribute the width between layouts 1 & 2 & 3 (using android:layout_weight)
*I tried the Horzontal LinearLayout for the whole activity, but I could not add the header and footer layouts correctly to the main horzontal linear layout
I read the documentation and tutorials but could not find a clue to this complex design, please help.
Also what is the performance hit of the nested layouts?
Thanks,
This is what
GridLayout
was made for. :-) Check out this article: http://android-developers.blogspot.com/2011/11/new-layout-widgets-space-and-gridlayout.htmlYou will nee a combination of Linear and relative layouts. To group the blocks in horizontal and vertical you can use LinearLayout and to put those groups you can either use linear layout and adjust the weight accordingly or use relative and set them in respect to each other.
You could try something like this, and, as someone else said,at this level you will not have performance issues