Опция Android `Reformat code` изменяет порядок моих просмотров в макете
Я только что обновился до Android Studio 3.5 и Code -> Reformat code
ранее просто переставил атрибуты в каждом из моих Views
определены в макетах. Но теперь, это реорганизует весь views
заказ целиком, что нехорошо.
Мне нужно, например, иметь представление в нижней части макета, чтобы оно рисовалось в конце, поверх всего остального и действовало как наложение щелчка на других видах. Reformat code
теперь движется View
в начале родительского контейнера, и взаимодействие с ним и его основное назначение теперь бесполезно.
Не могу найти опцию в настройках IDE, откуда отключить эту ненужную вещь. Любая помощь?
Это преобразует это:
<RelativeLayout
android:id="@+id/address_container"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/header">
<com.widgets.MTextInput
android:id="@+id/address_input_text"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="8dp"
android:layout_marginEnd="10dp"
android:layout_marginStart="10dp"
android:layout_marginTop="10dp">
<com.widgets.MEditText
android:id="@+id/address_edit_text"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:clickable="false"
android:focusable="false"
android:inputType="text"
android:textSize="14sp"
custom:key="Address" />
</com.MTextInput>
<View
android:id="@+id/address_mask"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignBottom="@+id/address_input_text"
android:layout_alignEnd="@+id/address_input_text"
android:layout_alignStart="@+id/address_input_text"
android:layout_alignTop="@+id/address_input_text" />
</RelativeLayout>
К этому:
<View
android:id="@+id/address_mask"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignBottom="@+id/address_input_text"
android:layout_alignEnd="@+id/address_input_text"
android:layout_alignStart="@+id/address_input_text"
android:layout_alignTop="@+id/address_input_text" />
<com.widgets.MTextInput
android:id="@+id/address_input_text"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="8dp"
android:layout_marginEnd="10dp"
android:layout_marginStart="10dp"
android:layout_marginTop="10dp">
<com.widgets.MEditText
android:id="@+id/address_edit_text"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:clickable="false"
android:focusable="false"
android:inputType="text"
android:textSize="14sp"
custom:key="Address" />
</com.widgets.MTextInput>
</RelativeLayout>