From 527a4f30a69aaa54fc9654539f0b6d839e37af3c Mon Sep 17 00:00:00 2001 From: Trevor Johns Date: Wed, 12 Nov 2014 11:39:30 -0800 Subject: Update browseable samples for lmp-docs Synced to commit df5e5013422b81b4fd05c0ac9fd964b13624847a. Includes new samples for Android Auto. Change-Id: I3fec46e2a6b3f196682a92f1afd91eb682dc2dc1 --- samples/browseable/TextLinkify/AndroidManifest.xml | 4 +--- samples/browseable/TextLinkify/_index.jd | 18 ++++++------------ .../TextLinkify/res/values-v21/template-styles.xml | 22 ++++++++++++++++++++++ .../TextLinkify/res/values/base-strings.xml | 3 --- 4 files changed, 29 insertions(+), 18 deletions(-) create mode 100644 samples/browseable/TextLinkify/res/values-v21/template-styles.xml (limited to 'samples/browseable/TextLinkify') diff --git a/samples/browseable/TextLinkify/AndroidManifest.xml b/samples/browseable/TextLinkify/AndroidManifest.xml index 49b4eae0b..eb55f205b 100644 --- a/samples/browseable/TextLinkify/AndroidManifest.xml +++ b/samples/browseable/TextLinkify/AndroidManifest.xml @@ -22,9 +22,7 @@ android:versionCode="1" android:versionName="1.0"> - + This sample demonstrates how to add clickable links to a -{@link android.widget.TextView}, by using these techniques: -
    -
  • Setting the {@link android.R.styleable#TextView_autoLink} property -to automatically convert the text to a link.
  • -
  • Parsing a String as HTML
  • -
  • Manually by constructing a {@link android.text.SpannableString}.
  • -
-

+

+ + This sample illustrates how links can be added to a TextView. This can be done either + automatically by setting the "autoLink" property or explicitly. + +

diff --git a/samples/browseable/TextLinkify/res/values-v21/template-styles.xml b/samples/browseable/TextLinkify/res/values-v21/template-styles.xml new file mode 100644 index 000000000..134fcd9d3 --- /dev/null +++ b/samples/browseable/TextLinkify/res/values-v21/template-styles.xml @@ -0,0 +1,22 @@ + + + + + +