SyntaxFix
Write A Post
Hire A Developer
Questions
Try using TextView.setRawInputType() it corresponds to the android:inputType attribute.
android:inputType