androidDev
androidDev

Reputation: 1227

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?

Upvotes: 8

Views: 13122

Answers (4)

Thamilvanan
Thamilvanan

Reputation: 385

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

Upvotes: 5

Siddharth Lele
Siddharth Lele

Reputation: 27748

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.

Upvotes: 7

Avadhani Y
Avadhani Y

Reputation: 7636

From Android Developers link, EditText can be defined as it is a thin veneer over TextView that configures itself to be editable.

  1. The inputType PersonName can be given as - android:inputType="textPersonName"
  2. The inputType Normal Text can be given as - android:inputType = "text"

Note : Based on the inputType the softkeyboad display will be changed dynamically.

Upvotes: 1

KMI
KMI

Reputation: 506

for person name input type - single line edit text

for plain text -multiline edittext box height of the edittext changes based on your data

Upvotes: 2

Related Questions