I found some code in stackoverflow and I want to use that code in my app. I have already overrided the EditText class(NoMenuEditText) like it is via link below. The question is what should I do now with that overrided class? I have EditText with id EditTextUserTask, how can I apply NoMenuEditText (overrided class) to EditTextUserTask inside my MainActivity?
EditText: Disable Paste/Replace menu pop-up on Text Selection Handler click event
I accept Java and Kotlin answers but if you can provide an answer in Kotlin, it would be better, thank you!