What is Text View in Android

It is used to display Text to the user. We can also edit textview but that we will discuss in later articles.

Choose plain text view from the widgets and drag it on the android screen.

		textview
		Figure 1
		

Now go to the Text option and will see the coding of this text view.

		textview xml code
		Figure 2
		

Now again move to the design part and double click on the textview which you have added. You will get following screen

		text view id and text
		Figure 3
		

Here you can set the text which you want to display on the screen and using id option you can set the id of the controls. Now again move to the Text option and you will see the changes in xml file too.

		Android text view xml code 
		

Now execute this code and you will get following output.

		Text view output 
		

Email Address

For any query you can send mail at info@techaltum.com