android 學習筆記四:控件

一、android:gravity 指定控件的基本位置,好比居中、居右等位置android

Top:頂部字體

bottom:底部blog

left:居左圖片

right:居右it

center_vertical:垂直居中im

center_Horizontal:水平居中margin

fill_vertical:待研究img

fill_Horizontal:待研究di

二、android:textSize 字體大小如:"16pt"vi

三、android:background 背景 如 顏色:「#aa0000」 圖片:「@drawable/background」

四、android:paddingLeft:距內邊框左邊的長度

五、android:Layout_width 控件寬度

六、android:singleLine 控件字是否一行顯示 是true 否False

七、android:Layout_marginLeft 距離左邊控件的距離 

相關文章
相關標籤/搜索