How do I set multiple input types in an EditText on Android?

后端 未结 3 1550
说谎
说谎 2021-02-07 09:45

I am trying to create an EditText with auto-capitalization and auto-correction implemented. I have manually figured out how to add InputFilters to allo

3条回答
  •  佛祖请我去吃肉
    2021-02-07 09:46

    Through XML it would be setup like so.

    android:inputType="textMultiLine|textNoSuggestions"
    

    You simply add a pipe (|) between variables. I see you were doing it through code but I was just throwing this out there for reference.

提交回复
热议问题