在android布局中重新格式化代码
当我按代码->重新格式化代码时在android布局中重新格式化代码,android,android-studio,Android,Android Studio,当我按代码->重新格式化代码时 布局变成这个形状 <android.support.design.widget.TextInputLayout android:id="@id/til_full_name" android:layout_width="0dp" android:layout_height="wrap_content" app:errorEnabled="true" app:layout_constraintBottom_toBottomOf="pare
布局变成这个形状
<android.support.design.widget.TextInputLayout android:id="@id/til_full_name"
android:layout_width="0dp" android:layout_height="wrap_content" app:errorEnabled="true"
app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toBottomOf="@id/tv_choose_picture"
app:layout_constraintVertical_bias="0.1">
<android.support.design.widget.TextInputEditText android:id="@id/et_full_name"
android:layout_width="match_parent" android:layout_height="wrap_content"
android:drawableRight="@mipmap/name" android:gravity="right"
android:hint="@string/full_name" android:inputType="textCapWords" />
但我需要这样
<android.support.design.widget.TextInputLayout
android:id="@id/til_full_name"
android:layout_width="0dp"
android:layout_height="wrap_content"
app:errorEnabled="true"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toBottomOf="@id/tv_choose_picture"
app:layout_constraintVertical_bias="0.1">
<android.support.design.widget.TextInputEditText
android:id="@id/et_full_name"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:drawableRight="@mipmap/name"
android:gravity="right"
android:hint="@string/full_name"
android:inputType="textCapWords" />
我不知道是什么改变了默认格式,我尝试将所有内容重置为默认格式,但我需要一些帮助来解决此问题您是否尝试过Ctrl+Alt+L,如果遇到任何问题请还原您是否尝试过Ctrl+Alt+L,如果遇到任何问题请还原玩游戏Android Studio中的“设置->编辑器->代码样式->XML->其他->包装属性”使用“设置->编辑器->代码样式->XML->其他->包装属性”“在Android Studio中它只在一个版面或其他版面中发生。当您进行重新格式化时。它也只在一个版面或其他版面中发生。当您进行重新格式化时。