1
0

More than 1 year has passed since last update.

TextViewで文字列があふれたときに自動スクロールさせる

Posted at

リソース側

<TextView
・・・
    android:singleLine="true"
    android:ellipsize="marquee"
    android:marqueeRepeatLimit ="marquee_forever"
    android:focusable="true"
    android:focusableInTouchMode="true"
    android:scrollHorizontally="true" />

ソース側

binding.textView.setOnClickListener {
    it.isSelected = true
}
1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0