kingsley
11/28/2016, 4:29 PMfun TextView.getText(): CharSequence
and fun EditText.getText(): Editable
. Here, the property type will depend on the compile time type of your variable
val view: TextView = EditText...
view.text // CharSequence
val view = EditText...
view.text // Editable