
Android UI
文章平均质量分 67
hacker_bin1234
Debugging involves backwards reasoning, like solving murder mysteries. Something impossible occurred, and the only solid information is that it really did occur
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
layout_height="0dip"
Layout 中有写法如下: layout_height="0dip" 或者 layout_width="0dip" 这里的意思是不是用具体的数值来计算高度或者宽度,而是和layout_weight 一起来使用的。经常会有这样的写法: 同一个LinearLayout (假设是横向的) 中 有几个view ,但是都不指定其具体的宽度,而是使用 layout_weig原创 2011-11-25 20:07:43 · 6500 阅读 · 0 评论 -
singleLine="true" 和 maxLines="1"
Android 的TextView 里面有两个属性 singLine 和maxLines 。 从字面意思来理解,这两个都是限制Text的行数。那么singleLine="true" 和maxLine="1" 都是限制为一行,有什么区别呢? 先看看Google Document 的解释: android:maxLines Makes the TextView be at原创 2011-11-25 20:33:35 · 4072 阅读 · 0 评论