What is the difference between gravity and layout_gravity in Android?

前端 未结 20 1185
庸人自扰
庸人自扰 2020-11-21 11:41

I know we can set the following values to the android:gravity and android:layout_gravity properties:

    <
20条回答
  •  [愿得一人]
    2020-11-21 12:22

    android:gravity -> Sets the gravity of the content of the View its used on.

    android:layout_gravity -> Sets the gravity of it's Parent's view or Layout

提交回复
热议问题