tim*_*ser 5 android android-layout android-gridview android-tablelayout
http://img683.imageshack.us/img683/645/weatherscreenmockupoutl.png
我问自己什么是编码这种布局的最佳方法.基本上我只需要知道如何获得具有相等宽度的七列.
提前致谢!
如果您想要相同的宽度,您可以选择具有相同权重的子级的 LinearLayout 。查看以下 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>
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
4413 次 |
| 最近记录: |