LinearLayout中,android:layout_gravity="center_vertical"与 android:layout_marginLeft="30dp"是相互冲突的,后者会失效,需要把前者去年后者才会生效。