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:scrollbars="none"> 23 24 <LinearLayout 25 android:id="@+id/layout" 26 android:orientation="vertical" 27 android:layout_width="match_parent" android:layout_height="wrap_content"> 28 29 <TextView 30 android:layout_width="match_parent" 31 android:layout_height="wrap_content" 32 android:text="@string/scroll_view_1_text_1"/> 33 34 <Button 35 android:layout_width="match_parent" 36 android:layout_height="wrap_content" 37 android:text="@string/scroll_view_1_button_1"/> 38 39 <TextView 40 android:layout_width="match_parent" 41 android:layout_height="wrap_content" 42 android:text="@string/scroll_view_1_text_2"/> 43 44 <Button 45 android:layout_width="match_parent" 46 android:layout_height="wrap_content" 47 android:text="@string/scroll_view_1_button_2"/> 48 49 <TextView 50 android:layout_width="match_parent" 51 android:layout_height="wrap_content" 52 android:text="@string/scroll_view_1_text_3"/> 53 54 <Button 55 android:layout_width="match_parent" 56 android:layout_height="wrap_content" 57 android:text="@string/scroll_view_1_button_3"/> 58 59 <TextView 60 android:layout_width="match_parent" 61 android:layout_height="wrap_content" 62 android:text="@string/scroll_view_1_text_4"/> 63 64 <Button 65 android:layout_width="match_parent" 66 android:layout_height="wrap_content" 67 android:text="@string/scroll_view_1_button_4"/> 68 69 <TextView 70 android:layout_width="match_parent" 71 android:layout_height="wrap_content" 72 android:text="@string/scroll_view_1_text_5"/> 73 74 <Button 75 android:layout_width="match_parent" 76 android:layout_height="wrap_content" 77 android:text="@string/scroll_view_1_button_5"/> 78 79 <TextView 80 android:layout_width="match_parent" 81 android:layout_height="wrap_content" 82 android:text="@string/scroll_view_1_text_6"/> 83 84 <Button 85 android:layout_width="match_parent" 86 android:layout_height="wrap_content" 87 android:text="@string/scroll_view_1_button_6"/> 88 89 </LinearLayout> 90 </ScrollView> 91