搜尋此網誌

2012年6月4日 星期一

android:gravity vs android:layout_gravity

android:gravity ~~~> 指元件自己放的位置. Specifies how to place the content of an object, both on the x- and y-axis, within the object itself. android:layout_gravity ~~~>指元件放在相對於父容器或元件的位置.
Reference