有 Java 编程相关的问题?

你可以在下面搜索框中键入要查询的问题!

java无法在编辑文本中显示大地址

from location wont work当我点击按钮时,它会显示多个地址。选择大地址后,文本的一半在编辑文本中不可见

<EditText
安卓:id="@+id/txtFromCity"
安卓:layout_width="0dp"
安卓:layout_height="wrap_content"
安卓:layout_weight="0.60"
安卓:inputType="textPostalAddress"
安卓:text=""
安卓:maxLength="100"
安卓:hint="Required"
安卓:textColor="@color/black"
安卓:textAppearance="@安卓:style/TextAppearance.Holo.Small"
style="@style/TextAppearance.AppCompat.Small"
安卓:focusableInTouchMode="false"/>

共 (1) 个答案

  1. # 1 楼答案

    试试这个代码吧,希望你能工作

    <EditText
    android:inputType="textMultiLine" <!  Multiline input  >
    android:lines="8" <!  Total Lines prior display  >
    android:minLines="6" <!  Minimum lines  >
    android:gravity="top|left" <!  Cursor Position  >
    android:maxLines="10" <!  Maximum Lines  >
    android:layout_height="wrap_content" <!  Height determined by content  >
    android:layout_width="match_parent" <!  Fill entire width  >
    android:scrollbars="vertical" <!  Vertical Scroll Bar  >
    />