Include设置layout_*无效解决方法
来源:互联网 发布:js new date 前一天 编辑:程序博客网 时间:2024/06/05 02:53
在include标签中不能省略
layout_width或者layout_height否则设置layout_weight就会无效。如下设置即可
<LinearLayout
android:id="@+id/linearLayout1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="0.0"
android:background="@drawable/img_bg_index_selector"
android:orientation="horizontal" >
<include
android:id="@+id/view_selector1"
android:layout_weight="1.0"
android:layout_height="wrap_content"
android:layout_width="match_parent"
layout="@layout/item_index_activity_selector" />
<include
android:id="@+id/view_selector2"
android:layout_weight="1.0"
android:layout_height="wrap_content"
android:layout_width="match_parent"
layout="@layout/item_index_activity_selector" />
</LinearLayout>
1 0
- Include设置layout_*无效解决方法
- include标签在RelativeLayout设置无效
- GridView中设置DataFormatString无效的解决方法
- GridView中设置DataFormatString无效的解决方法
- vc++ 2008 设置断点无效解决方法
- 表格Table宽度设置无效的解决方法
- Vim 设置 textwidth 和 formatoptions 无效解决方法
- Android LinearLayout 设置 OnClickListener 无效时解决方法
- silverlight 设置断点无效的解决方法
- 表格Table宽度设置无效的解决方法
- IOS9 以后设置状态栏颜色无效解决方法
- VC设置断点无效的各种解决方法
- apache修改网站根目录无效(设置好了,但无效)解决方法
- winform的Textbox设置只读之后ForeColor无效的解决方法
- 调试ATL工程设置断点无效的解决方法
- [HTML]表格Table宽度设置无效的解决方法
- FireFox下设置DIV的top和left无效解决方法
- table和div设置height:100%无效的完美解决方法
- 史上最全:Android开发者必知的开发资源
- 从设计模式角度看ArcGIS Engine
- usaco 4.2.3 Job Processing
- 冒泡排序
- QT 之 QImage类
- Include设置layout_*无效解决方法
- oracle基本管理(3)
- Python3.2 实现基于KNN算法的数据分类
- CString::SpanIncluding函数的使用
- 数据结构-概述(1)
- oracle基本管理(4)
- StringBuffer和String、 StringBuilder的区别:
- Python面试题集合
- 深度学习资料整理(从感知机到深度网络)