android – How to set Scrolling Movement Method on Text View in Kotlin-ThrowExceptions

Exception or error:

In java we do the following to make the text-view scrollable

textview.setMovementMethod (new ScrollingMovementMethod());

but I am unable to comprehend how to perform the same task in Kotlin.

How to solve:

You can use the following syntax:

textview.movementMethod = ScrollingMovementMethod()

Leave a Reply

Your email address will not be published. Required fields are marked *