1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2007 The Android Open Source Project 3 4 Licensed under the Apache License, Version 2.0 (the "License"); 5 you may not use this file except in compliance with the License. 6 You may obtain a copy of the License at 7 8 http://www.apache.org/licenses/LICENSE-2.0 9 10 Unless required by applicable law or agreed to in writing, software 11 distributed under the License is distributed on an "AS IS" BASIS, 12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 See the License for the specific language governing permissions and 14 limitations under the License. 15--> 16 17<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" 18 android:layout_width="match_parent" 19 android:layout_height="wrap_content"> 20 21 <LinearLayout android:orientation="vertical" 22 android:layout_width="match_parent" 23 android:layout_height="wrap_content" 24 android:showDividers="middle" 25 android:divider="?android:attr/listDivider"> 26 27 <!-- Four TextView widgets, each one displaying text containing links. --> 28 29 <!-- text1 automatically linkifies things like URLs and phone numbers. --> 30 <TextView android:id="@+id/text1" 31 android:layout_width="match_parent" 32 android:layout_height="match_parent" 33 android:paddingBottom="8dp" 34 android:autoLink="all" 35 android:textAppearance="?android:attr/textAppearanceMedium" 36 android:text="@string/link_text_auto" 37 /> 38 39 <!-- text2 uses a string resource containing explicit <a> tags to 40 specify links. --> 41 <TextView android:id="@+id/text2" 42 android:layout_width="match_parent" 43 android:layout_height="match_parent" 44 android:paddingTop="8dp" 45 android:paddingBottom="8dp" 46 android:textAppearance="?android:attr/textAppearanceMedium" 47 android:text="@string/link_text_manual" 48 /> 49 50 <!-- text3 builds the text in the Java code using HTML. --> 51 <TextView android:id="@+id/text3" 52 android:layout_width="match_parent" 53 android:layout_height="match_parent" 54 android:paddingTop="8dp" 55 android:paddingBottom="8dp" 56 android:textAppearance="?android:attr/textAppearanceMedium" 57 /> 58 59 <!-- text4 builds the text in the Java code without using HTML. --> 60 <TextView android:id="@+id/text4" 61 android:layout_width="match_parent" 62 android:layout_height="match_parent" 63 android:paddingTop="8dp" 64 android:textAppearance="?android:attr/textAppearanceMedium" 65 /> 66 67 </LinearLayout> 68</ScrollView> 69