android:gravity
is used to adjust for content of the view relative to its specify position (allocated area). android:gravity="left"
would not do anything if layout_width
is equal to the "wrap_content"
android:layout_gravity
is used for view itself relative to the parent or layout file.