android:paddingLeft與android:layout_marginLeft的區別(注轉載于http://hi.baidu.com/fynancywin/blog/item/2701214bf95a263baec3ab46.html)
當按鈕分別設置以上兩個屬性時,得到的效果是不一樣的。
android:paddingLeft="30px"
按鈕上設置的內容(例如圖片)離按鈕左邊邊界30個像素
android:layout_marginLeft="30px"
整個按鈕離左邊設置的內容30個像素posted on 2011-01-03 17:51 小一敗涂地 閱讀(33802) 評論(1) 編輯 收藏 所屬分類: android+移動開發