gravity 和layout_gravity区别 指定控件中子元素(文字)的对齐方式 android:gravity="center" 当前控件在父容器中的对齐方式 android:layout_gravity="center"