Skip to content
Advertisement

How to only let Edit Text accept Letters which are in Textview

I have an edit text however I only want letters which are in another Text view to be typeable. For example if the Text view say Hello Only H,E,L and O should be Typeable.

Advertisement

Answer

Using this code you can get it to only accept your String

android:digits="@string/YourString"
User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement