Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/218.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在android布局中重新格式化代码_Android_Android Studio - Fatal编程技术网

在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中

它只在一个版面或其他版面中发生。当您进行重新格式化时。它也只在一个版面或其他版面中发生。当您进行重新格式化时。