xref: /aosp_15_r20/development/samples/ApiDemos/res/layout/scrollbar2.xml (revision 90c8c64db3049935a07c6143d7fd006e26f8ecca)
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<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
20*90c8c64dSAndroid Build Coastguard Worker    android:layout_width="match_parent"
21*90c8c64dSAndroid Build Coastguard Worker    android:layout_height="wrap_content"
22*90c8c64dSAndroid Build Coastguard Worker    android:scrollbarTrackVertical="@drawable/scrollbar_vertical_track"
23*90c8c64dSAndroid Build Coastguard Worker    android:scrollbarThumbVertical="@drawable/scrollbar_vertical_thumb"
24*90c8c64dSAndroid Build Coastguard Worker    android:scrollbarSize="12dip">
25*90c8c64dSAndroid Build Coastguard Worker
26*90c8c64dSAndroid Build Coastguard Worker    <LinearLayout
27*90c8c64dSAndroid Build Coastguard Worker        android:orientation="vertical"
28*90c8c64dSAndroid Build Coastguard Worker        android:layout_width="match_parent"
29*90c8c64dSAndroid Build Coastguard Worker        android:layout_height="wrap_content">
30*90c8c64dSAndroid Build Coastguard Worker
31*90c8c64dSAndroid Build Coastguard Worker        <TextView
32*90c8c64dSAndroid Build Coastguard Worker            android:layout_width="match_parent"
33*90c8c64dSAndroid Build Coastguard Worker            android:layout_height="wrap_content"
34*90c8c64dSAndroid Build Coastguard Worker            android:text="@string/scrollbar_2_text"/>
35*90c8c64dSAndroid Build Coastguard Worker        <TextView
36*90c8c64dSAndroid Build Coastguard Worker            android:layout_width="match_parent"
37*90c8c64dSAndroid Build Coastguard Worker            android:layout_height="wrap_content"
38*90c8c64dSAndroid Build Coastguard Worker            android:text="@string/scrollbar_2_text"/>
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        <TextView
80*90c8c64dSAndroid Build Coastguard Worker            android:layout_width="match_parent"
81*90c8c64dSAndroid Build Coastguard Worker            android:layout_height="wrap_content"
82*90c8c64dSAndroid Build Coastguard Worker            android:text="@string/scrollbar_2_text"/>
83*90c8c64dSAndroid Build Coastguard Worker        <TextView
84*90c8c64dSAndroid Build Coastguard Worker            android:layout_width="match_parent"
85*90c8c64dSAndroid Build Coastguard Worker            android:layout_height="wrap_content"
86*90c8c64dSAndroid Build Coastguard Worker            android:text="@string/scrollbar_2_text"/>
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_2_text"/>
91*90c8c64dSAndroid Build Coastguard Worker        <TextView
92*90c8c64dSAndroid Build Coastguard Worker            android:layout_width="match_parent"
93*90c8c64dSAndroid Build Coastguard Worker            android:layout_height="wrap_content"
94*90c8c64dSAndroid Build Coastguard Worker            android:text="@string/scrollbar_2_text"/>
95*90c8c64dSAndroid Build Coastguard Worker        <TextView
96*90c8c64dSAndroid Build Coastguard Worker            android:layout_width="match_parent"
97*90c8c64dSAndroid Build Coastguard Worker            android:layout_height="wrap_content"
98*90c8c64dSAndroid Build Coastguard Worker            android:text="@string/scrollbar_2_text"/>
99*90c8c64dSAndroid Build Coastguard Worker        <TextView
100*90c8c64dSAndroid Build Coastguard Worker            android:layout_width="match_parent"
101*90c8c64dSAndroid Build Coastguard Worker            android:layout_height="wrap_content"
102*90c8c64dSAndroid Build Coastguard Worker            android:text="@string/scrollbar_2_text"/>
103*90c8c64dSAndroid Build Coastguard Worker        <TextView
104*90c8c64dSAndroid Build Coastguard Worker            android:layout_width="match_parent"
105*90c8c64dSAndroid Build Coastguard Worker            android:layout_height="wrap_content"
106*90c8c64dSAndroid Build Coastguard Worker            android:text="@string/scrollbar_2_text"/>
107*90c8c64dSAndroid Build Coastguard Worker        <TextView
108*90c8c64dSAndroid Build Coastguard Worker            android:layout_width="match_parent"
109*90c8c64dSAndroid Build Coastguard Worker            android:layout_height="wrap_content"
110*90c8c64dSAndroid Build Coastguard Worker            android:text="@string/scrollbar_2_text"/>
111*90c8c64dSAndroid Build Coastguard Worker        <TextView
112*90c8c64dSAndroid Build Coastguard Worker            android:layout_width="match_parent"
113*90c8c64dSAndroid Build Coastguard Worker            android:layout_height="wrap_content"
114*90c8c64dSAndroid Build Coastguard Worker            android:text="@string/scrollbar_2_text"/>
115*90c8c64dSAndroid Build Coastguard Worker        <TextView
116*90c8c64dSAndroid Build Coastguard Worker            android:layout_width="match_parent"
117*90c8c64dSAndroid Build Coastguard Worker            android:layout_height="wrap_content"
118*90c8c64dSAndroid Build Coastguard Worker            android:text="@string/scrollbar_2_text"/>
119*90c8c64dSAndroid Build Coastguard Worker        <TextView
120*90c8c64dSAndroid Build Coastguard Worker            android:layout_width="match_parent"
121*90c8c64dSAndroid Build Coastguard Worker            android:layout_height="wrap_content"
122*90c8c64dSAndroid Build Coastguard Worker            android:text="@string/scrollbar_2_text"/>
123*90c8c64dSAndroid Build Coastguard Worker        <TextView
124*90c8c64dSAndroid Build Coastguard Worker            android:layout_width="match_parent"
125*90c8c64dSAndroid Build Coastguard Worker            android:layout_height="wrap_content"
126*90c8c64dSAndroid Build Coastguard Worker            android:text="@string/scrollbar_2_text"/>
127*90c8c64dSAndroid Build Coastguard Worker        <TextView
128*90c8c64dSAndroid Build Coastguard Worker            android:layout_width="match_parent"
129*90c8c64dSAndroid Build Coastguard Worker            android:layout_height="wrap_content"
130*90c8c64dSAndroid Build Coastguard Worker            android:text="@string/scrollbar_2_text"/>
131*90c8c64dSAndroid Build Coastguard Worker        <TextView
132*90c8c64dSAndroid Build Coastguard Worker            android:layout_width="match_parent"
133*90c8c64dSAndroid Build Coastguard Worker            android:layout_height="wrap_content"
134*90c8c64dSAndroid Build Coastguard Worker            android:text="@string/scrollbar_2_text"/>
135*90c8c64dSAndroid Build Coastguard Worker        <TextView
136*90c8c64dSAndroid Build Coastguard Worker            android:layout_width="match_parent"
137*90c8c64dSAndroid Build Coastguard Worker            android:layout_height="wrap_content"
138*90c8c64dSAndroid Build Coastguard Worker            android:text="@string/scrollbar_2_text"/>
139*90c8c64dSAndroid Build Coastguard Worker        <TextView
140*90c8c64dSAndroid Build Coastguard Worker            android:layout_width="match_parent"
141*90c8c64dSAndroid Build Coastguard Worker            android:layout_height="wrap_content"
142*90c8c64dSAndroid Build Coastguard Worker            android:text="@string/scrollbar_2_text"/>
143*90c8c64dSAndroid Build Coastguard Worker        <TextView
144*90c8c64dSAndroid Build Coastguard Worker            android:layout_width="match_parent"
145*90c8c64dSAndroid Build Coastguard Worker            android:layout_height="wrap_content"
146*90c8c64dSAndroid Build Coastguard Worker            android:text="@string/scrollbar_2_text"/>
147*90c8c64dSAndroid Build Coastguard Worker        <TextView
148*90c8c64dSAndroid Build Coastguard Worker            android:layout_width="match_parent"
149*90c8c64dSAndroid Build Coastguard Worker            android:layout_height="wrap_content"
150*90c8c64dSAndroid Build Coastguard Worker            android:text="@string/scrollbar_2_text"/>
151*90c8c64dSAndroid Build Coastguard Worker        <TextView
152*90c8c64dSAndroid Build Coastguard Worker            android:layout_width="match_parent"
153*90c8c64dSAndroid Build Coastguard Worker            android:layout_height="wrap_content"
154*90c8c64dSAndroid Build Coastguard Worker            android:text="@string/scrollbar_2_text"/>
155*90c8c64dSAndroid Build Coastguard Worker        <TextView
156*90c8c64dSAndroid Build Coastguard Worker            android:layout_width="match_parent"
157*90c8c64dSAndroid Build Coastguard Worker            android:layout_height="wrap_content"
158*90c8c64dSAndroid Build Coastguard Worker            android:text="@string/scrollbar_2_text"/>
159*90c8c64dSAndroid Build Coastguard Worker        <TextView
160*90c8c64dSAndroid Build Coastguard Worker            android:layout_width="match_parent"
161*90c8c64dSAndroid Build Coastguard Worker            android:layout_height="wrap_content"
162*90c8c64dSAndroid Build Coastguard Worker            android:text="@string/scrollbar_2_text"/>
163*90c8c64dSAndroid Build Coastguard Worker        <TextView
164*90c8c64dSAndroid Build Coastguard Worker            android:layout_width="match_parent"
165*90c8c64dSAndroid Build Coastguard Worker            android:layout_height="wrap_content"
166*90c8c64dSAndroid Build Coastguard Worker            android:text="@string/scrollbar_2_text"/>
167*90c8c64dSAndroid Build Coastguard Worker        <TextView
168*90c8c64dSAndroid Build Coastguard Worker            android:layout_width="match_parent"
169*90c8c64dSAndroid Build Coastguard Worker            android:layout_height="wrap_content"
170*90c8c64dSAndroid Build Coastguard Worker            android:text="@string/scrollbar_2_text"/>
171*90c8c64dSAndroid Build Coastguard Worker    </LinearLayout>
172*90c8c64dSAndroid Build Coastguard Worker</ScrollView>
173