• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
23    <LinearLayout
24    	android:orientation="vertical"
25        android:layout_width="match_parent"
26        android:layout_height="wrap_content">
27
28		<ImageView
29			android:layout_width="match_parent"
30			android:layout_height="50dip"
31			android:src="@drawable/shape_1" />
32
33		<ImageView
34			android:layout_width="match_parent"
35			android:layout_height="wrap_content"
36			android:src="@drawable/line" />
37
38		<ImageView
39			android:layout_width="match_parent"
40			android:layout_height="50dip"
41			android:src="@drawable/shape_2" />
42
43		<ImageView
44			android:layout_width="match_parent"
45			android:layout_height="wrap_content"
46			android:src="@drawable/line" />
47
48		<ImageView
49			android:layout_width="match_parent"
50			android:layout_height="50dip"
51			android:src="@drawable/shape_3" />
52
53		<ImageView
54			android:layout_width="match_parent"
55			android:layout_height="wrap_content"
56			android:src="@drawable/line" />
57
58		<ImageView
59			android:layout_width="match_parent"
60			android:layout_height="50dip"
61			android:src="@drawable/shape_4" />
62
63		<ImageView
64			android:layout_width="match_parent"
65			android:layout_height="wrap_content"
66			android:src="@drawable/line" />
67
68		<ImageView
69			android:layout_width="match_parent"
70			android:layout_height="50dip"
71			android:src="@drawable/shape_5" />
72	</LinearLayout>
73</ScrollView>
74