Android布局
路边水果摊
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Android LinearLayout layout_weight适应屏幕布局
废话不多说直接上代码: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="wrap_content" android:b原创 2012-03-08 18:27:18 · 1353 阅读 · 0 评论 -
Android gravity属性详解
Value Description top Put the object at the top of its container, not changing its size. 将对象放在其容器的顶部,不改变其大小. bottom Put the object at the bottom of its container, not changing转载 2012-04-07 15:29:18 · 2122 阅读 · 0 评论 -
Android dip dp px sp
dip: device independent pixels(设备独立像素). 不同设备有不同的显示效果,这个和设备硬件有关,一般我们为了支持WVGA、HVGA和QVGA 推荐使用这个,不依赖像素。 px: pixels(像素). 不同设备显示效果相同,一般我们HVGA代表320x480像素,这个用的比较多。 pt: point,是一个标准的长度单位,1pt=1/72英寸,用于印转载 2012-04-06 14:57:31 · 770 阅读 · 0 评论 -
Android selecter shape
在Android中常常会使用shape来定义控件的一些显示属性,那么怎么来用那,今天我们就来看一些shape的使用,大家看完这篇以后就会对shape有了大体的了解,下面的是稍作总结请大家仔细的观看: <gradient android:startColor="#ff8c00" andro转载 2012-04-06 16:56:33 · 1315 阅读 · 0 评论 -
Android RelativeLayout属性
android:layout_above 将该控件的底部至于给定ID的控件之上 android:layout_below 将该控件的顶部至于给定ID的控件之下 android:layout_toLeftOf 将该控件的右边缘和给定ID的控件的左边缘对齐 android:layout_toRightOf 将该控件的左边缘和给定ID的控件的右边缘对齐 android:layout_alignB转载 2012-04-07 17:17:43 · 616 阅读 · 0 评论 -
Android selector item 属性大全
必须。必须是根元素。包含一个或多个元素。 Attributes: xmlns:android String,必须。定义XML的命名空间,必须是 “http://schemas.android.com/apk/res/android”.转载 2012-04-09 09:46:10 · 4900 阅读 · 3 评论
分享