![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
andorid
aicong
普普通通
展开
-
android笔记
1、setContentView(R.layout.main)就是把原创 2014-06-04 11:32:43 · 356 阅读 · 0 评论 -
Android的显示单位
lpx(pixels)像素 一般HVGA代表320x480像素,这个用的比较多。l dip或dp (device independent pixels)设备独立像素 这个和设备硬件有关,一般为了支持WVGA、HVGA和QVGA推荐使用这个,不依赖像素。l sp (scaled pixels — best for textsize原创 2014-06-04 20:50:45 · 404 阅读 · 0 评论 -
RelativeLayout属性
下面介绍一下RelativeLayout用到的一些重要的属性:第一类:属性值为true或falseandroid:layout_centerHrizontal 水平居中android:layout_centerVertical 垂直居中android:layout_centerInparent 相对于父元素完全居中android:layout_alignParentBo原创 2014-06-04 21:23:21 · 442 阅读 · 0 评论