Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the difference between Plain Text and text view on android studio 3.0.1?

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.

like image 380
M. Dada Avatar asked Dec 26 '17 07:12

M. Dada


People also ask

What is the use of TextView in Android Studio?

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.

What is a TextView in android?

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.

What is the difference between edit text and TextView 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 textbox Android studio?

It's called EditText . I believe in Android Studio it is the TextField which has a line below. Just using a different theme.


1 Answers

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.

like image 91
Prashant Abdare Avatar answered Sep 25 '22 16:09

Prashant Abdare