Android Studio 3.5代码格式更改了XML布局中布局层次结构中的UI组件的顺序

Cha*_*rma 7 xml android android-layout android-studio

今天,我更新了最新版本的Stable Android Studio 3.5,在此版本中,布局编辑器具有某些奇怪的行为。

当我尝试使用Android Studio快捷方式重新设置代码格式,Ctrl+Alt+L但又重新格式化了不包含代码的整个组件时,我也尝试使用“代码”->“重新格式化代码”。但面临同样的问题。

重新排列代码之前的XML布局,

<LinearLayout
        android:id="@+id/linearLayout"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginTop="@dimen/quick_start_title_text_top_margin"
        android:gravity="center"
        android:orientation="vertical"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toTopOf="parent">

        <android.support.v7.widget.AppCompatTextView
            android:id="@+id/tv_title"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="@string/quick_start"
            android:textColor="@color/colorBlack"
            android:textSize="@dimen/quick_start_title_text"
            app:fontPath="@string/font_semi_bold" />

        <android.support.v7.widget.AppCompatImageView
            android:layout_width="60dp"
            android:layout_height="wrap_content"
            android:layout_marginTop="2dp"
            android:src="@drawable/bg_quick_start_line" />
</LinearLayout>
Run Code Online (Sandbox Code Playgroud)

XML重新排列代码后,

<LinearLayout
        android:id="@+id/linearLayout"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginTop="@dimen/quick_start_title_text_top_margin"
        android:gravity="center"
        android:orientation="vertical"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toTopOf="parent">

        <android.support.v7.widget.AppCompatImageView
            android:layout_width="60dp"
            android:layout_height="wrap_content"
            android:layout_marginTop="2dp"
            android:src="@drawable/bg_quick_start_line" />

        <android.support.v7.widget.AppCompatTextView
            android:id="@+id/tv_title"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="@string/quick_start"
            android:textColor="@color/colorBlack"
            android:textSize="@dimen/quick_start_title_text"
             app:fontPath="@string/font_semi_bold" />

    </LinearLayout>
Run Code Online (Sandbox Code Playgroud)

它会重新排列所有组件,而不是重新排列组件中的Code(如属性)。

因此,请帮助我解决问题,或者有人可以在Android Studio中提供一些设置来解决此问题。