开发者

Android Special Characters

开发者 https://www.devze.com 2023-02-16 10:31 出处:网络
Hi i need to validate an edit text bo开发者_如何转开发x which user need to enter his height, I need to allow the user only this two symbols (\" \') ex: 5\'11\". I want to restrict user entering other

Hi i need to validate an edit text bo开发者_如何转开发x which user need to enter his height, I need to allow the user only this two symbols (" ') ex: 5'11". I want to restrict user entering other special characters, how to restrict, need a help


Set following property to your edittext

android:digits="'"1234567890"
0

精彩评论

暂无评论...
验证码 换一张
取 消