drawable_background_minimum_size.xml revision 1d3165f10b12165f02b7015ac1a817c5f60e6399
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<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" 18 android:layout_width="wrap_content" 19 android:layout_height="wrap_content"> 20 21 <LinearLayout 22 android:layout_width="wrap_content" 23 android:layout_height="wrap_content" 24 android:orientation="vertical"> 25 26 <Button 27 android:id="@+id/change_backgrounds" 28 android:text="@string/change_backgrounds" 29 android:layout_width="wrap_content" 30 android:layout_height="wrap_content" /> 31 32 <!-- Different views and layouts that should initially be small but still contain 33 some content (hence the minimal text inside each of the layouts). Each of these 34 will each be tested to make sure they expand to at least the minimum size 35 recommended by different backgrounds --> 36 37 <TextView 38 android:id="@+id/text_view" 39 android:layout_width="wrap_content" 40 android:layout_height="wrap_content" 41 android:text="@string/minimal_text" /> 42 43 <LinearLayout 44 android:id="@+id/linear_layout" 45 android:layout_width="wrap_content" 46 android:layout_height="wrap_content"> 47 48 <TextView 49 android:layout_width="wrap_content" 50 android:layout_height="wrap_content" 51 android:text="@string/minimal_text" /> 52 53 </LinearLayout> 54 55 <RelativeLayout 56 android:id="@+id/relative_layout" 57 android:layout_width="wrap_content" 58 android:layout_height="wrap_content"> 59 60 <TextView 61 android:layout_width="wrap_content" 62 android:layout_height="wrap_content" 63 android:text="@string/minimal_text" /> 64 65 </RelativeLayout> 66 67 <FrameLayout 68 android:id="@+id/frame_layout" 69 android:layout_width="wrap_content" 70 android:layout_height="wrap_content"> 71 72 <TextView 73 android:layout_width="wrap_content" 74 android:layout_height="wrap_content" 75 android:text="@string/minimal_text" /> 76 77 </FrameLayout> 78 79 <AbsoluteLayout 80 android:id="@+id/absolute_layout" 81 android:layout_width="wrap_content" 82 android:layout_height="wrap_content"> 83 84 <TextView 85 android:layout_width="wrap_content" 86 android:layout_height="wrap_content" 87 android:text="@string/minimal_text" /> 88 89 </AbsoluteLayout> 90 91 </LinearLayout> 92 93</ScrollView> 94