这是它的显示方式:
<ImageView
android:layout_width="0dp"
android:layout_height="0dp" app:srcCompat="@drawable/hatimage"
android:id="@+id/imageView"
app:layout_constraintTop_toTopOf="parent" android:layout_marginBottom="8dp"
app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintVertical_bias="0.497" app:layout_constraintEnd_toEndOf="parent"
android:layout_marginEnd="8dp" android:layout_marginTop="8dp"/>
</android.support.constraint.ConstraintLayout>
我想要的样子:
<ImageView
android:layout_width="0dp"
android:layout_height="0dp"
app:srcCompat="@drawable/hatimage"
android:id="@+id/imageView"
app:layout_constraintTop_toTopOf="parent"
android:layout_marginBottom="8dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintVertical_bias="0.497"
app:layout_constraintEnd_toEndOf="parent"
android:layout_marginEnd="8dp"
android:layout_marginTop="8dp"/>
</android.support.constraint.ConstraintLayout>
答案 0 :(得分:0)
赢
Ctrl + Alt + L
Linux:
Ctrl + Shift + Alt + L
Mac:
Option + Command + L