layout_weight使用
来源:互联网 发布:xampp修改mysql密码 编辑:程序博客网 时间:2024/06/06 03:52
多级布局使用layout_weight的使用注意
假如:宽度方向weight
父布局 的layout_width="fill_parent"
子布局的layout_width="wrap_contnet"
子布局的元素 应使用layout_width="fill_parent" 充满父布局
否则weight 不能显现出来
weight 值越小占的比例越大,(越小越重要)
<LinearLayout android:id="@+id/ly_main_ll_left" android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="@color/black75" android:orientation="horizontal" > <LinearLayout android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_weight="1" android:orientation="vertical" > <TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_gravity="center" android:layout_marginTop="3dp" android:gravity="center" android:text="@string/main_left_title" android:textColor="@color/blue_01" android:textSize="@dimen/ly_main_left_text_size" > </TextView> <ListView android:id="@+id/ly_main_left_list" android:layout_width="fill_parent" android:layout_height="wrap_content" android:cacheColorHint="@color/black00" android:divider="@color/gray" android:layout_alignParentRight="true" android:dividerHeight="1dp" > </ListView> </LinearLayout> <LinearLayout android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_weight="4" android:orientation="horizontal" > <View android:layout_width="fill_parent" android:layout_height="fill_parent" /> </LinearLayout> </LinearLayout>
- layout_weight使用
- android:layout_weight 使用
- layout_weight的使用
- LinearLayout中使用layout_weight!!!
- layout_weight参数的使用
- 安卓中layout_weight的使用
- layout_weight属性的使用
- android layout_weight 使用总结
- Android layout_weight使用
- android:layout_weight的使用
- 使用layout_weight做布局
- Android layout_weight属性使用
- android:layout_weight属性的使用
- android:layout_weight属性的使用
- android:layout_weight属性使用注意事项
- layout_weight 的解释及使用
- LinearLayout中的layout_weight的使用
- Android layout_weight 属性使用介绍
- 主成分分析 PCA 理解
- 限制带宽设置
- Linux 下C 网络编程 setsockopt getsockopt 基础练习
- BigDecimal
- IE firefox window.event.srcElement兼容
- layout_weight使用
- java url request参数解析类
- win7 vmware 安装mac os lion10.7
- Spring JPA
- Android的USB打印机部署
- How to convert CLOB to VARCHAR2 ?
- 个人博客的迁移
- oracle字符集笔记
- html5 drawImage图片不显示问题