【项目笔记】布局文件报错Suspicious size: this will make the view invisible, probably intended for layout_width
2016-07-16 11:16
776 查看
写着写着就懵逼了,一直以为布局文件没写错啊,horizontal就是竖直啊,原来布局文件报错,不仅仅需要从报错的地方解决问题,还需要从其他地方去分析。
很明显是方向orientation选错了,应该写成vertical 才是竖直方向而不是horizontal
<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" > <ScrollView android:layout_width="match_parent" android:layout_height="0dp" android:layout_weight="1" > <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical" > <FrameLayout android:id="@+id/fl_appinfo" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginLeft="5dp" android:layout_marginRight="5dp" android:background="@drawable/list_item_bg_normal" > </FrameLayout> </LinearLayout> </ScrollView> <FrameLayout android:id="@+id/fl_download" android:layout_width="match_parent" android:layout_height="wrap_content" android:background="@drawable/detail_bottom_bg" > </FrameLayout> </LinearLayout>
相关文章推荐
- 强连通分量(SCC)模版
- APUE读书笔记-第五章 标准I/O库
- [hdu 1711] Number Sequence [kmp]
- 将图像扭正确。利用OpenCV检测图像中的长方形画布或纸张并提取图像内容
- LWIP内存池memp.h头文件学习
- hello world 是我们的第一个脚印!
- codeforces 696C C. PLEASE(概率+快速幂)
- 实例解析如何正确使用Java数组
- bzoj 1592 [Usaco2008 Feb]Making the Grade 路面修整
- 【千里码】Task6-IP
- Search in Rotated Sorted Array
- 计算表达式
- kafka简介
- request对象
- Web.py - streaming_large_files
- Android实现数据存储技术
- android检查网络连接
- 高级语言与低级语言的区别
- CISCO配置文件的导出和导入(Timed out)问题 踩坑记录
- 173. Binary Search Tree Iterator