kupris
12/07/2016, 10:52 AMclass TwoColorsTextView : HtmlTextView{
private var separator: String = "jboiubombobumb"
private var test: Boolean = true
constructor(context: Context) : this(context, null)
constructor(context: Context, attrs: AttributeSet?) : this(context, attrs, 0)
constructor(context: Context, attrs: AttributeSet?, defStyleAttr: Int) : super(context, attrs, defStyleAttr) {}
override fun setText(text: CharSequence?, type: BufferType?) {
try {
Log.d("test", test.toString())
Log.d("test", separator)
} catch (ex : IndexOutOfBoundsException){
super.setText(text, type)
}
}
}