For an app I'm creating, I have a few fields which can not be made bigger due to the limited space. For that reason, I would like the fields to scroll continuously. This is a bit like sometimes found in car radios where for example the RDS information scrolls. Is this possible using Android? I've already tried it using the Scroller
and MovementMethod
:
myEditText.setScroller(new Scroller(this));
myEditText.setMaxLines(1);
myEditText.setHorizontalScrollBarEnabled(true);
myEditText.setMovementMethod(new ScrollingMovementMethod());
However, this doesn't do what I want it to do. This is my EditText:
<EditText
android:id="@+id/pedigreeLineAEditText"
android:layout_width="match_parent"
android:layout_height="@dimen/line_height"
android:clickable="false"
android:cursorVisible="false"
android:focusable="false"
android:focusableInTouchMode="false"
android:inputType="none"
android:singleLine="true"
android:textSize="@dimen/text_size" />