Was trying to design a user interface for my apps login screen activity. Was wondering how the textview and Plain text differed (for ex in their attributes and functionality) and the implications of choosing one over the other.
A TextView displays text to the user and optionally allows them to edit it. A TextView is a complete text editor, however the basic class is configured to not allow editing.
TextView is the user interface which displays the text message on the screen to the user. It is based on the layout size, style, and color, etc. TextView is used to set and display the text according to our specifications.
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.
It's called EditText . I believe in Android Studio it is the TextField which has a line below. Just using a different theme.
Plaintext is nothing but the Edittext. It has changed the name in Android studio but if you check into Design view you will get to know that it still has name of Edittext only.
Usages
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With