http://img683.imageshack.us/img683/645/weatherscreenmockupoutl.png
I am asking myself whats the best way to code this layout. Basicly i just need to know how to get seven columns with an equal width.
Thanks in advance!
if it is the equal width that you want, you can go for linearLayout with children of equal weight. check out the following xml.
<LinearLayout
layout:orientation="horizontal"
>
<LinearLayout
android:id = "@+id/firstcolumn"
android:layout_weight="1"
android:orientation="vertical"
android:layout_width="0dp"
>
// do the same for your rest of the six children
</LinearLayout>
TableLayout
seems better, because the number of columns won't change. With GridView
you have to add adapters and stuff.
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