我已经用高度设计了我的用户名 EditText,我尝试将相同的属性复制到我的电子邮件 EditText,当我将 InputType 更改为“textEmailAddress”时,我的自定义高度属性被忽略了。这是我的电子邮件 EditText 代码:
<EditText
android:id="@+id/EditText02"
android:inputType="textEmailAddress"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_above="@+id/ImageView01"
android:layout_alignLeft="@+id/editText1"
android:layout_marginBottom="2dp"
android:background="@color/Alpha_White"
android:ems="10"
android:height="37dp"
android:hint="Email"
android:maxLength="22"
android:paddingLeft="7dp"
android:textColorHint="#DDAAAAAA"
android:textSize="17sp"
android:width="230dp" />