<LinearLayout android:layout_marginLeft="20dp" android:layout_width="match_parent" android:layout_height="match_parent" android:gravity="bottom" android:orientation="vertical"> <Button android:id="@+id/cy_city_submit" android:layout_width="335dp" android:layout_height="54dp" android:textColor="@color/white" android:text="确认选择" android:gravity="center"> </Button> </LinearLayout>
提示LinearLayout中不可以用android:layout_gravity