1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- Copyright (C) 2008 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 <FrameLayout 18 xmlns:android="http://schemas.android.com/apk/res/android" 19 android:layout_width="match_parent" 20 android:layout_height="match_parent"> 21 22 <!-- This child is marked as GONE so that it won't interfere with the visuals of our 23 ListView on the screen. It's here to "hold" views that will be used as headers and 24 footers for the relevant tests. --> 25 <FrameLayout 26 android:layout_width="match_parent" 27 android:layout_height="wrap_content" 28 android:visibility="gone"> 29 30 <TextView 31 android:id="@+id/headerview1" 32 android:layout_width="wrap_content" 33 android:layout_height="wrap_content" 34 android:text="@string/header_view" /> 35 36 <TextView 37 android:id="@+id/headerview2" 38 android:layout_width="wrap_content" 39 android:layout_height="wrap_content" 40 android:text="@string/header_view" /> 41 42 <TextView 43 android:id="@+id/footerview1" 44 android:layout_width="wrap_content" 45 android:layout_height="wrap_content" 46 android:text="@string/footer_view" /> 47 48 <TextView 49 android:id="@+id/footerview2" 50 android:layout_width="wrap_content" 51 android:layout_height="wrap_content" 52 android:text="@string/footer_view" /> 53 </FrameLayout> 54 55 <ListView 56 android:id="@+id/listview_default" 57 android:layout_width="match_parent" 58 android:layout_height="match_parent"/> 59 60 </FrameLayout> 61 62