Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
テキストがテキストビューより短い場合にテキストマーキーを有効にする方法はありますか?
TextViewのelipsizeプロパティを、xmlファイルでマーキーに設定します
android:ellipsize = "marquee"
次に、アクティビティのonCreateメソッドでTextViewのオブジェクトを作成し、setSelectedPropertyをtrueに設定します。
textview1.setSelected(true)
出典:以前のStackoverflowの回答