我如何保持它固定不动并且一行文本水平滚动? (而不是将 EditText 拉伸(stretch)到全屏长度)
Link to the stretched EditText screenshot
谢谢。
最佳答案
给它一个固定的宽度并强制它像这样留在一行上:
android:layout_width="100dp"
android:singleLine="true"
关于Android EditText 在长文本上被拉伸(stretch),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7390065/