Androidアプリでマーキーの機能を使用したいのですが、このコードを使用して目標を達成しています:
<TextView
android:id="@+id/marqueetext"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:ellipsize="marquee"
android:fadingEdge="horizontal"
android:lines="1"
android:marqueeRepeatLimit="marquee_forever"
android:scrollHorizontally="true"
android:text="hello all how are you"
android:textColor="#ff4500"
/>
MarqueeText = (TextView)ShowTheMessages.this.findViewById(R.id.marqueetext);
MarqueeText.setSelected(true);
なぜ機能しないのかわかりません。多くの関連記事を調べましたが、解決策が見つかりませんでした。助けてください。よろしくお願いします。