- Widget XML tag
XML Attributes Description
||Enables the linking of text to open web browser URLs, email client, etc.|
||Displays desired text in the TextView.|
Using HTML markup in text
> are reserved for XML only. This means you need to write alternative symbols which represent them where
The following text demonstrates how to use alternative symbols.
“ is also a reserved character and needs to be written as
HTML mark-up tags:
- breaks line into a new row
- creates an email link on the text EMAIL which is displayed in
TextView. Clicking on it displays the menu for choosing an email program.
<font color="#46b4e7">other color text</font>(
<<font color=”#46b4e7”>other color text</font>)
- text that is within these tags will be a different color
Tags can also be nested and there are many more that can be used. Refer to Android Documentation for more details on HTML and tags.
Enables the linking of text to open web browser URLs, email client, etc. Each link opens different intent
(String) values =
||Matches no pattern|
||Recognises web addresses and converts them to links|
|Recognises web addresses and converts them to links|
||Recognises phone numbers and converts them to links|
||Recognises map addresses and converts them to links|
Displays desired text in the TextView. It is possible to use HTML tags to format text.