android EditText inputType for StreetNumber field
问题 I'm trying to choose correct inputType in my adress dialog streetNumber field. I want to show numeric keyboard first, but then let user also to input alphabetic characters for some very special cases. Closer to this is inputType datetime, but this doesn't allow to enter alphabetic characters. So how to set my streetNumber field correctly? 回答1: Use android:inputType="textPostalAddress" 回答2: The EditText inherits from TextView and shares its input type attributes with it. They can be found here