Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Difference between Plain text input type and Person Name input type in Editext in android

When we use EditText widget in Android, then what are the basic difference while using Plain Text input type and Person name input type?

like image 722
androidDev Avatar asked May 21 '12 10:05

androidDev


People also ask

What is the difference between plain text and text view in android?

Textview : should be used for uneditable text which user wants to read but not to manipulate. e.g. News, Articles, Blogs. Plain text/ Edittext : should be used for taking user input in alphanumeric form. e.g. UserId, Comments.

What is the difference between TextView and EditText in android?

EditText is used for user input. TextView is used to display text and is not editable by the user. TextView can be updated programatically at any time.

What is the EditText attribute android inputType used for?

The android:inputType attribute allows you to specify various behaviors for the input method. Most importantly, if your text field is intended for basic text input (such as for a text message), you should enable auto spelling correction with the "textAutoCorrect" value.


2 Answers

There is no real difference between the two. To clarify what I mean when I say no real difference, the Person Name input simply has the attribute android:inputType="textPersonName" preset. The person Name edit text will capitalize the first character of every word after the user hits the space button.

It is only to offer some convenience to developers who need to set the inputType attribute to EditTex views. You will find some similar preset Text Fields in the Android SDK's ADT. And by using the attribute mentioned above, you can have the same effect on a Plain Text field too.

like image 169
Siddharth Lele Avatar answered Sep 23 '22 07:09

Siddharth Lele


Based on your input type the softkeyboad display will change dynamically.

like image 45
Thamilvanan Avatar answered Sep 22 '22 07:09

Thamilvanan