摘要: android:layout_above="@id/xxx" --将控件置于给定ID控件之上android:layout_below="@id/xxx" --将控件置于给定ID控件之下android:layout_toLeftOf="@id/xxx" --将控件的右边缘和给定ID控件的左边缘对齐android:layout_toRightOf="@id/xxx" --将控件的左边缘和给定ID控件的右边缘对齐android:layout_alignLeft="@id/xxx" --将控件的左边缘和 阅读全文
posted @ 2013-12-04 10:11 西科程序 阅读(162) 评论(0) 推荐(0) 编辑
摘要: 最近在看android的东西,发现很多和web前台的东西一样(思想)。只是看到很多属性的写法和前台有差别,刚刚看到这样的属性:android:width 其实是定义控件上面的文本(TextView) 的宽度,当然这个宽度也是和 android:layout_width 配合起来作用的,如果 android:layout_width="fill_parent" 的话,那么设置 android:width 是没有意义的android:layout_width 其实是可以实现 android:width 的效果的,我觉得这应该是为什么在 android 实例中看不到有人用 and 阅读全文
posted @ 2013-12-04 10:07 西科程序 阅读(586) 评论(0) 推荐(0) 编辑