在edittext字段中键入的文本在纵向模式下是不可见的

时间:2016-06-27 17:45:24

标签: android android-layout android-edittext

我的布局中定义了edittext,如下所示:

<EditText
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:id="@+id/editText"
        android:layout_above="@+id/textView4"
        android:layout_toRightOf="@+id/textView2"
        android:layout_alignTop="@+id/textView2"
        android:layout_alignParentRight="true"
        android:layout_alignParentEnd="true" />

然而,在纵向模式下,键入的文本是不可见的,但在横向上可见。

1 个答案:

答案 0 :(得分:0)

这里真的没有太多的背景,但我的第一个猜测是textView2填满整个屏幕宽度。在这种情况下,由于android:layout_toRightOf =“@ + id / textView2”

,视图将不可见