如何解决安卓在“纯文本”字段下没有一行
我不明白为什么纯文本字段之一下没有行,我在android studio中有这行,但是当我在手机上启动我的应用程序时,它消失了。我试图从另一个纯文本视图中复制xml属性,但这没有帮助
-
<TableLayout android:id="@+id/tableLayout" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_marginStart="16dp" android:layout_marginTop="16dp" android:layout_marginEnd="16dp" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@+id/registration_text_view"> <TableRow android:layout_width="match_parent" android:layout_height="match_parent"> <TextView android:id="@+id/textView3" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginEnd="8dp" android:layout_weight="1" android:text="@string/nickname_def_text" android:textAlignment="center" android:textSize="18sp" /> <EditText android:id="@+id/nickname_edit_text" android:layout_width="match_parent" android:layout_height="wrap_content" android:autofillHints="" android:ems="10" android:inputType="textEmailAddress" android:textColor="#3A433D" /> </TableRow> <TableRow android:layout_width="match_parent" android:layout_height="wrap_content"> <TextView android:id="@+id/textView5" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginEnd="8dp" android:layout_weight="1" android:text="@string/email_def_text" android:textAlignment="center" android:textSize="18sp" /> <EditText android:id="@+id/email_edit_text" android:layout_width="match_parent" android:layout_height="wrap_content" android:autofillHints="" android:ems="10" android:inputType="textEmailAddress" android:textColor="#3A433D" /> </TableRow> <TableRow android:layout_width="match_parent" android:layout_height="wrap_content"> <TextView android:id="@+id/textView2" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginEnd="8dp" android:layout_weight="1" android:text="@string/password_def_text" android:textAlignment="center" android:textSize="18sp" /> <EditText android:id="@+id/password_edit_text" android:layout_width="match_parent" android:layout_height="wrap_content" android:autofillHints="" android:ems="10" android:inputType="textPassword" android:textColor="#3A433D" /> </TableRow> <TableRow android:layout_width="match_parent" android:layout_height="wrap_content"> <Button android:id="@+id/register_btn" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_marginTop="16dp" android:layout_weight="1" android:text="@string/register_btn" android:textColor="#3A433D" /> </TableRow> </TableLayout>
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。