Hi I am making a app with Kotlin and I found that I can both use
textView.setText(str)
and
textView.text =
textView.setText(str) and textView.text = $str, does the same job of setting the specified str to TextView. The only difference I can come up with is,
textView.setText(str) // old Java way of setting Text where method setText(str) was being called.
textView.text = $str //new Kotlin way of setting Text where instead of a method, a synthetic property is being called.