Reputation: 1227
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
Reputation: 385
Based on your input type the softkeyboad display will change dynamically.
Upvotes: 5
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
Reputation: 7636
From Android Developers link, EditText
can be defined as it is a thin veneer over TextView
that configures itself to be editable.
android:inputType="textPersonName"
android:inputType = "text"
Note : Based on the inputType the softkeyboad display will be changed dynamically.
Upvotes: 1
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