我正在开发一个与Android应用相关的项目,我想要固定编辑框的尺寸。例如,如果我想在上面添加100个字,那么编辑框的大小就不会增加。字符应该保持在框内而不是增加编辑文本的大小。我附带了我的editText的XML代码和图片。
<EditText
android:id="@+id/fnametxt"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1.1"
android:background="@color/Beige"
android:enabled="false"
android:lines="1"
android:ems="15"
android:maxLines="1"
android:scrollHorizontally="true"
android:singleLine="true"
android:text="ufyufgiuhjlkh"
android:textColor="@color/Black"
android:textSize="12sp" />
提前致谢