It is used to change the color of text selection highlight. It is used to specify the Typeface (normal, sans, serif, monospace) for the text. It is used to present the text in all CAPS It is used to change the style (bold, italic, bolditalic) of text. It is used to specify the size of the text. It is used to make the TextView be at least this many pixels wide. It is used to make the TextView be at most this many pixels wide. It is used to specify how to align the text by the view's x and y-axis. It is used to change the color of the text. It makes the TextView be exactly this many pixels tall. It makes the TextView be exactly this many pixels wide. It is used to display the hint text when text is empty It is used to make the textview be exactly this many ems wide. It will automatically found and convert URLs and email addresses as clickable links. It is used to uniquely identify the control The following are some of the commonly used attributes related to TextView control in android applications. If you observe above code snippet, we are getting the TextView control which we defined in XML layout file using id property and setting the text using setText() method. TextView tv = (TextView)findViewById(R.id.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |