Skip to content

Instantly share code, notes, and snippets.

@Hasiy
Last active July 14, 2022 10:26
Show Gist options
  • Save Hasiy/c0c4d0edbff4eb2984082badaf87f2ea to your computer and use it in GitHub Desktop.
Save Hasiy/c0c4d0edbff4eb2984082badaf87f2ea to your computer and use it in GitHub Desktop.
横向滚动文字
class MarqueeTextView @JvmOverloads constructor(
context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = 0
) : AppCompatTextView(context, attrs, defStyleAttr) {
// 获取焦点
override fun isFocused(): Boolean {
return true
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment