Android开发与实践第3章 用户界面设计 .ppt

android:layout_width=wrap_content android:layout_height=fill_parent android:text=第二行 android:layout_weight=1 / TextView android:layout_width=wrap_content android:layout_height=fill_parent android:text=第三行 android:layout_weight=1 / TextView android:layout_width=wrap_content android:layout_height=fill_parent android:text=第四行 android:layout_weight=1 / /LinearLayout /LinearLayout 说明: 上面的代码中用到了android:layout_weight属性,该属性用来设置组件的占用空间,比如在线性布局中添加3个TextView组件,它们的android:layout_weight属性分别设置为2、1、1,则它们所占用的空间分别为1/2、1/

文档评论(0)

1亿VIP精品文档

相关文档