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<!-- Demonstrates scrolling with a ScrollView. --> 18 19<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" 20 android:layout_width="match_parent" 21 android:layout_height="wrap_content" 22 android:scrollbarTrackVertical="@drawable/scrollbar_vertical_track" 23 android:scrollbarThumbVertical="@drawable/scrollbar_vertical_thumb" 24 android:scrollbarSize="12dip"> 25 26 <LinearLayout 27 android:orientation="vertical" 28 android:layout_width="match_parent" 29 android:layout_height="wrap_content"> 30 31 <TextView 32 android:layout_width="match_parent" 33 android:layout_height="wrap_content" 34 android:text="@string/scrollbar_2_text"/> 35 <TextView 36 android:layout_width="match_parent" 37 android:layout_height="wrap_content" 38 android:text="@string/scrollbar_2_text"/> 39 <TextView 40 android:layout_width="match_parent" 41 android:layout_height="wrap_content" 42 android:text="@string/scrollbar_2_text"/> 43 <TextView 44 android:layout_width="match_parent" 45 android:layout_height="wrap_content" 46 android:text="@string/scrollbar_2_text"/> 47 <TextView 48 android:layout_width="match_parent" 49 android:layout_height="wrap_content" 50 android:text="@string/scrollbar_2_text"/> 51 <TextView 52 android:layout_width="match_parent" 53 android:layout_height="wrap_content" 54 android:text="@string/scrollbar_2_text"/> 55 <TextView 56 android:layout_width="match_parent" 57 android:layout_height="wrap_content" 58 android:text="@string/scrollbar_2_text"/> 59 <TextView 60 android:layout_width="match_parent" 61 android:layout_height="wrap_content" 62 android:text="@string/scrollbar_2_text"/> 63 <TextView 64 android:layout_width="match_parent" 65 android:layout_height="wrap_content" 66 android:text="@string/scrollbar_2_text"/> 67 <TextView 68 android:layout_width="match_parent" 69 android:layout_height="wrap_content" 70 android:text="@string/scrollbar_2_text"/> 71 <TextView 72 android:layout_width="match_parent" 73 android:layout_height="wrap_content" 74 android:text="@string/scrollbar_2_text"/> 75 <TextView 76 android:layout_width="match_parent" 77 android:layout_height="wrap_content" 78 android:text="@string/scrollbar_2_text"/> 79 <TextView 80 android:layout_width="match_parent" 81 android:layout_height="wrap_content" 82 android:text="@string/scrollbar_2_text"/> 83 <TextView 84 android:layout_width="match_parent" 85 android:layout_height="wrap_content" 86 android:text="@string/scrollbar_2_text"/> 87 <TextView 88 android:layout_width="match_parent" 89 android:layout_height="wrap_content" 90 android:text="@string/scrollbar_2_text"/> 91 <TextView 92 android:layout_width="match_parent" 93 android:layout_height="wrap_content" 94 android:text="@string/scrollbar_2_text"/> 95 <TextView 96 android:layout_width="match_parent" 97 android:layout_height="wrap_content" 98 android:text="@string/scrollbar_2_text"/> 99 <TextView 100 android:layout_width="match_parent" 101 android:layout_height="wrap_content" 102 android:text="@string/scrollbar_2_text"/> 103 <TextView 104 android:layout_width="match_parent" 105 android:layout_height="wrap_content" 106 android:text="@string/scrollbar_2_text"/> 107 <TextView 108 android:layout_width="match_parent" 109 android:layout_height="wrap_content" 110 android:text="@string/scrollbar_2_text"/> 111 <TextView 112 android:layout_width="match_parent" 113 android:layout_height="wrap_content" 114 android:text="@string/scrollbar_2_text"/> 115 <TextView 116 android:layout_width="match_parent" 117 android:layout_height="wrap_content" 118 android:text="@string/scrollbar_2_text"/> 119 <TextView 120 android:layout_width="match_parent" 121 android:layout_height="wrap_content" 122 android:text="@string/scrollbar_2_text"/> 123 <TextView 124 android:layout_width="match_parent" 125 android:layout_height="wrap_content" 126 android:text="@string/scrollbar_2_text"/> 127 <TextView 128 android:layout_width="match_parent" 129 android:layout_height="wrap_content" 130 android:text="@string/scrollbar_2_text"/> 131 <TextView 132 android:layout_width="match_parent" 133 android:layout_height="wrap_content" 134 android:text="@string/scrollbar_2_text"/> 135 <TextView 136 android:layout_width="match_parent" 137 android:layout_height="wrap_content" 138 android:text="@string/scrollbar_2_text"/> 139 <TextView 140 android:layout_width="match_parent" 141 android:layout_height="wrap_content" 142 android:text="@string/scrollbar_2_text"/> 143 <TextView 144 android:layout_width="match_parent" 145 android:layout_height="wrap_content" 146 android:text="@string/scrollbar_2_text"/> 147 <TextView 148 android:layout_width="match_parent" 149 android:layout_height="wrap_content" 150 android:text="@string/scrollbar_2_text"/> 151 <TextView 152 android:layout_width="match_parent" 153 android:layout_height="wrap_content" 154 android:text="@string/scrollbar_2_text"/> 155 <TextView 156 android:layout_width="match_parent" 157 android:layout_height="wrap_content" 158 android:text="@string/scrollbar_2_text"/> 159 <TextView 160 android:layout_width="match_parent" 161 android:layout_height="wrap_content" 162 android:text="@string/scrollbar_2_text"/> 163 <TextView 164 android:layout_width="match_parent" 165 android:layout_height="wrap_content" 166 android:text="@string/scrollbar_2_text"/> 167 <TextView 168 android:layout_width="match_parent" 169 android:layout_height="wrap_content" 170 android:text="@string/scrollbar_2_text"/> 171 </LinearLayout> 172</ScrollView> 173