Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何在 ANDROID 中设置仅允许正整数(如 0、1、2、3、4 等)的文本字段
将此行放在 xml 中:
android:inputType="numberSigned"