首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 移动开发 > Android >

求解:Android中android:layout_width与android:width有什么区别?解决方法

2012-02-19 
求解:Android中android:layout_width与android:width有什么区别?比如下面的代码:TextView android:id@+

求解:Android中android:layout_width与android:width有什么区别?
比如下面的代码:
 
  <TextView android:id="@+id/item3" 
  android:text="费用(元)" 

  android:width="100dip" 
  android:layout_width="wrap_content"

  android:layout_height="fill_parent"
  /> 

 其中的 
android:layout_width 与 android:width 
有什么区别呢?
多谢!

[解决办法]
android:width 支持 
px (pixels)像素
dip (device independent pixels)设备独立像素
sp (scaled pixels — best for text size)放大像素--对文本大小最好
pt (points)点
in (inches)英寸
mm (millimeters)毫米

热点排行