to top
TextLinkify / res / values /

strings.xml

1
<?xml version="1.0" encoding="utf-8"?>
2
<!--
3
  Copyright 2013 The Android Open Source Project
4
 
5
  Licensed under the Apache License, Version 2.0 (the "License");
6
  you may not use this file except in compliance with the License.
7
  You may obtain a copy of the License at
8
 
9
        http://www.apache.org/licenses/LICENSE-2.0
10
 
11
  Unless required by applicable law or agreed to in writing, software
12
  distributed under the License is distributed on an "AS IS" BASIS,
13
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
  See the License for the specific language governing permissions and
15
  limitations under the License.
16
-->
17
 
18
<resources>
19
 
20
    <string name="intro">This sample illustrates how links can be added to a TextView.
21
    \nThis can be done either automatically by setting the <i>autoLink</i> property
22
    or explicitly.</string>
23
    <string name="link_text_auto"><b>text_auto_linkify: Various kinds
24
      of data that will be auto-linked.</b>
25
      In this text are some things that are actionable.  For instance,
26
      you can click on http://www.google.com and it will launch the
27
      web browser.  You can click on google.com too.  If you
28
      click on (415) 555-1212 it should dial the phone.  Or just write
29
      foobar@example.com for an e-mail link.  If you have a URI like
30
      http://www.example.com/lala/foobar@example.com you should get the
31
      full link not the e-mail address.  Or you can put a location
32
      like 1600 Amphitheatre Parkway, Mountain View, CA 94043.  To summarize:
33
      https://www.google.com, or 650-253-0000, somebody@example.com,
34
      or 9606 North MoPac Expressway, Suite 400, Austin, TX 78759.</string>
35
    <string name="link_text_manual"><![CDATA[<b>text_html_resource:
36
      Explicit links using &lt;a&gt; markup.</b>
37
      This has markup for a <a href="http://www.google.com">link</a> specified
38
      via an &lt;a&gt; tag.  Use a \"tel:\" URL
39
      to <a href="tel:4155551212">dial a phone number</a>.]]></string>
40
 
41
</resources>