1*90c8c64dSAndroid Build Coastguard Worker<?xml version="1.0" encoding="utf-8"?> 2*90c8c64dSAndroid Build Coastguard Worker<!-- Copyright (C) 2007 The Android Open Source Project 3*90c8c64dSAndroid Build Coastguard Worker 4*90c8c64dSAndroid Build Coastguard Worker Licensed under the Apache License, Version 2.0 (the "License"); 5*90c8c64dSAndroid Build Coastguard Worker you may not use this file except in compliance with the License. 6*90c8c64dSAndroid Build Coastguard Worker You may obtain a copy of the License at 7*90c8c64dSAndroid Build Coastguard Worker 8*90c8c64dSAndroid Build Coastguard Worker http://www.apache.org/licenses/LICENSE-2.0 9*90c8c64dSAndroid Build Coastguard Worker 10*90c8c64dSAndroid Build Coastguard Worker Unless required by applicable law or agreed to in writing, software 11*90c8c64dSAndroid Build Coastguard Worker distributed under the License is distributed on an "AS IS" BASIS, 12*90c8c64dSAndroid Build Coastguard Worker WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13*90c8c64dSAndroid Build Coastguard Worker See the License for the specific language governing permissions and 14*90c8c64dSAndroid Build Coastguard Worker limitations under the License. 15*90c8c64dSAndroid Build Coastguard Worker--> 16*90c8c64dSAndroid Build Coastguard Worker 17*90c8c64dSAndroid Build Coastguard Worker<!-- Demonstrates scrolling with a ScrollView. --> 18*90c8c64dSAndroid Build Coastguard Worker 19*90c8c64dSAndroid Build Coastguard Worker<LinearLayout 20*90c8c64dSAndroid Build Coastguard Worker xmlns:android="http://schemas.android.com/apk/res/android" 21*90c8c64dSAndroid Build Coastguard Worker android:layout_width="match_parent" 22*90c8c64dSAndroid Build Coastguard Worker android:layout_height="match_parent" 23*90c8c64dSAndroid Build Coastguard Worker android:orientation="vertical"> 24*90c8c64dSAndroid Build Coastguard Worker 25*90c8c64dSAndroid Build Coastguard Worker <LinearLayout 26*90c8c64dSAndroid Build Coastguard Worker android:layout_width="match_parent" 27*90c8c64dSAndroid Build Coastguard Worker android:layout_height="wrap_content" 28*90c8c64dSAndroid Build Coastguard Worker android:orientation="horizontal"> 29*90c8c64dSAndroid Build Coastguard Worker 30*90c8c64dSAndroid Build Coastguard Worker <ScrollView 31*90c8c64dSAndroid Build Coastguard Worker android:layout_width="100dip" 32*90c8c64dSAndroid Build Coastguard Worker android:layout_height="120dip" 33*90c8c64dSAndroid Build Coastguard Worker android:background="#FF0000"> 34*90c8c64dSAndroid Build Coastguard Worker <LinearLayout 35*90c8c64dSAndroid Build Coastguard Worker android:orientation="vertical" 36*90c8c64dSAndroid Build Coastguard Worker android:layout_width="match_parent" 37*90c8c64dSAndroid Build Coastguard Worker android:layout_height="match_parent"> 38*90c8c64dSAndroid Build Coastguard Worker 39*90c8c64dSAndroid Build Coastguard Worker <TextView 40*90c8c64dSAndroid Build Coastguard Worker android:layout_width="match_parent" 41*90c8c64dSAndroid Build Coastguard Worker android:layout_height="wrap_content" 42*90c8c64dSAndroid Build Coastguard Worker android:text="@string/scrollbar_2_text" /> 43*90c8c64dSAndroid Build Coastguard Worker <TextView 44*90c8c64dSAndroid Build Coastguard Worker android:layout_width="match_parent" 45*90c8c64dSAndroid Build Coastguard Worker android:layout_height="wrap_content" 46*90c8c64dSAndroid Build Coastguard Worker android:text="@string/scrollbar_2_text" /> 47*90c8c64dSAndroid Build Coastguard Worker <TextView 48*90c8c64dSAndroid Build Coastguard Worker android:layout_width="match_parent" 49*90c8c64dSAndroid Build Coastguard Worker android:layout_height="wrap_content" 50*90c8c64dSAndroid Build Coastguard Worker android:text="@string/scrollbar_2_text" /> 51*90c8c64dSAndroid Build Coastguard Worker <TextView 52*90c8c64dSAndroid Build Coastguard Worker android:layout_width="match_parent" 53*90c8c64dSAndroid Build Coastguard Worker android:layout_height="wrap_content" 54*90c8c64dSAndroid Build Coastguard Worker android:text="@string/scrollbar_2_text" /> 55*90c8c64dSAndroid Build Coastguard Worker <TextView 56*90c8c64dSAndroid Build Coastguard Worker android:layout_width="match_parent" 57*90c8c64dSAndroid Build Coastguard Worker android:layout_height="wrap_content" 58*90c8c64dSAndroid Build Coastguard Worker android:text="@string/scrollbar_2_text" /> 59*90c8c64dSAndroid Build Coastguard Worker <TextView 60*90c8c64dSAndroid Build Coastguard Worker android:layout_width="match_parent" 61*90c8c64dSAndroid Build Coastguard Worker android:layout_height="wrap_content" 62*90c8c64dSAndroid Build Coastguard Worker android:text="@string/scrollbar_2_text" /> 63*90c8c64dSAndroid Build Coastguard Worker <TextView 64*90c8c64dSAndroid Build Coastguard Worker android:layout_width="match_parent" 65*90c8c64dSAndroid Build Coastguard Worker android:layout_height="wrap_content" 66*90c8c64dSAndroid Build Coastguard Worker android:text="@string/scrollbar_2_text" /> 67*90c8c64dSAndroid Build Coastguard Worker <TextView 68*90c8c64dSAndroid Build Coastguard Worker android:layout_width="match_parent" 69*90c8c64dSAndroid Build Coastguard Worker android:layout_height="wrap_content" 70*90c8c64dSAndroid Build Coastguard Worker android:text="@string/scrollbar_2_text" /> 71*90c8c64dSAndroid Build Coastguard Worker <TextView 72*90c8c64dSAndroid Build Coastguard Worker android:layout_width="match_parent" 73*90c8c64dSAndroid Build Coastguard Worker android:layout_height="wrap_content" 74*90c8c64dSAndroid Build Coastguard Worker android:text="@string/scrollbar_2_text" /> 75*90c8c64dSAndroid Build Coastguard Worker <TextView 76*90c8c64dSAndroid Build Coastguard Worker android:layout_width="match_parent" 77*90c8c64dSAndroid Build Coastguard Worker android:layout_height="wrap_content" 78*90c8c64dSAndroid Build Coastguard Worker android:text="@string/scrollbar_2_text" /> 79*90c8c64dSAndroid Build Coastguard Worker </LinearLayout> 80*90c8c64dSAndroid Build Coastguard Worker </ScrollView> 81*90c8c64dSAndroid Build Coastguard Worker 82*90c8c64dSAndroid Build Coastguard Worker <ScrollView 83*90c8c64dSAndroid Build Coastguard Worker android:layout_width="100dip" 84*90c8c64dSAndroid Build Coastguard Worker android:layout_height="120dip" 85*90c8c64dSAndroid Build Coastguard Worker android:background="#00FF00" 86*90c8c64dSAndroid Build Coastguard Worker android:paddingRight="12dip"> 87*90c8c64dSAndroid Build Coastguard Worker <TextView 88*90c8c64dSAndroid Build Coastguard Worker android:layout_width="match_parent" 89*90c8c64dSAndroid Build Coastguard Worker android:layout_height="wrap_content" 90*90c8c64dSAndroid Build Coastguard Worker android:text="@string/scrollbar_3_text" 91*90c8c64dSAndroid Build Coastguard Worker android:textColor="#000000" 92*90c8c64dSAndroid Build Coastguard Worker android:background="#60AA60" /> 93*90c8c64dSAndroid Build Coastguard Worker </ScrollView> 94*90c8c64dSAndroid Build Coastguard Worker 95*90c8c64dSAndroid Build Coastguard Worker <ScrollView 96*90c8c64dSAndroid Build Coastguard Worker android:id="@+id/view3" 97*90c8c64dSAndroid Build Coastguard Worker android:layout_width="100dip" 98*90c8c64dSAndroid Build Coastguard Worker android:layout_height="120dip" 99*90c8c64dSAndroid Build Coastguard Worker android:background="@android:drawable/edit_text"> 100*90c8c64dSAndroid Build Coastguard Worker <TextView 101*90c8c64dSAndroid Build Coastguard Worker android:layout_width="match_parent" 102*90c8c64dSAndroid Build Coastguard Worker android:layout_height="wrap_content" 103*90c8c64dSAndroid Build Coastguard Worker android:textColor="#000000" 104*90c8c64dSAndroid Build Coastguard Worker android:text="@string/scrollbar_3_text" /> 105*90c8c64dSAndroid Build Coastguard Worker </ScrollView> 106*90c8c64dSAndroid Build Coastguard Worker </LinearLayout> 107*90c8c64dSAndroid Build Coastguard Worker 108*90c8c64dSAndroid Build Coastguard Worker <LinearLayout 109*90c8c64dSAndroid Build Coastguard Worker android:layout_width="match_parent" 110*90c8c64dSAndroid Build Coastguard Worker android:layout_height="wrap_content"> 111*90c8c64dSAndroid Build Coastguard Worker <ScrollView 112*90c8c64dSAndroid Build Coastguard Worker android:id="@+id/view4" 113*90c8c64dSAndroid Build Coastguard Worker android:layout_width="100dip" 114*90c8c64dSAndroid Build Coastguard Worker android:layout_height="120dip" 115*90c8c64dSAndroid Build Coastguard Worker android:scrollbarStyle="outsideOverlay" 116*90c8c64dSAndroid Build Coastguard Worker android:background="@android:drawable/edit_text"> 117*90c8c64dSAndroid Build Coastguard Worker <TextView 118*90c8c64dSAndroid Build Coastguard Worker android:layout_width="match_parent" 119*90c8c64dSAndroid Build Coastguard Worker android:layout_height="wrap_content" 120*90c8c64dSAndroid Build Coastguard Worker android:textColor="#000000" 121*90c8c64dSAndroid Build Coastguard Worker android:text="@string/scrollbar_3_text" /> 122*90c8c64dSAndroid Build Coastguard Worker </ScrollView> 123*90c8c64dSAndroid Build Coastguard Worker <ScrollView 124*90c8c64dSAndroid Build Coastguard Worker android:id="@+id/view5" 125*90c8c64dSAndroid Build Coastguard Worker android:layout_width="100dip" 126*90c8c64dSAndroid Build Coastguard Worker android:layout_height="120dip" 127*90c8c64dSAndroid Build Coastguard Worker android:scrollbarStyle="outsideInset" 128*90c8c64dSAndroid Build Coastguard Worker android:background="@android:drawable/edit_text"> 129*90c8c64dSAndroid Build Coastguard Worker <TextView 130*90c8c64dSAndroid Build Coastguard Worker android:layout_width="match_parent" 131*90c8c64dSAndroid Build Coastguard Worker android:layout_height="wrap_content" 132*90c8c64dSAndroid Build Coastguard Worker android:textColor="#000000" 133*90c8c64dSAndroid Build Coastguard Worker android:text="@string/scrollbar_3_text" /> 134*90c8c64dSAndroid Build Coastguard Worker </ScrollView> 135*90c8c64dSAndroid Build Coastguard Worker </LinearLayout> 136*90c8c64dSAndroid Build Coastguard Worker</LinearLayout> 137