EditTextが無効で、1行に大きなテキストが含まれている場合にスクロールしたい。
私は試しますedittext.setInputType(InputType.TYPE_NULL)
しかし、背景は変わらず、ユーザーはいつ編集できるかどうかの違いを見分けることができません。
編集:私のxml:
<EditText
android:id="@+id/et_address"
android:layout_width="0dip"
android:layout_height="wrap_content"
android:layout_weight="1"
android:inputType="text"
android:maxLength="120"
android:maxLines="1"
android:singleLine="true"
android:nextFocusDown="@+id/et_name" />
edittext が有効になっている場合、水平スクロールは正常に機能します。edittext が無効になっている場合も同じことが必要です