Advertisement
Guest User

Untitled

a guest
Jan 28th, 2020
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Kotlin 0.32 KB | None | 0 0
  1. class MyTextView @JvmOverloads constructor(
  2.     context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = 0
  3. ) : AppCompatTextView(context, attrs, defStyleAttr) {
  4.  
  5.     private val things = mutableListOf<Thing>()
  6.  
  7.     override fun setText(text: CharSequence?, type: BufferType?) {
  8.         // things is null
  9.     }
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement