1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2009 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<RelativeLayout 18 xmlns:android="http://schemas.android.com/apk/res/android" 19 android:layout_width="fill_parent" 20 android:layout_height="wrap_content" 21 android:paddingLeft="@dimen/quickcontact_shadow_horiz" 22 android:paddingRight="@dimen/quickcontact_shadow_horiz" 23 android:background="@drawable/quickcontact_drop_shadow"> 24 25 <FrameLayout 26 android:id="@+id/header" 27 android:layout_width="fill_parent" 28 android:layout_height="wrap_content" 29 android:layout_marginTop="10dip"> 30 31 <ViewStub 32 android:id="@+id/header_small" 33 android:inflatedId="@+id/header_small" 34 android:layout_width="fill_parent" 35 android:layout_height="wrap_content" 36 android:layout="@layout/quickcontact_header_small" /> 37 38 <ViewStub 39 android:id="@+id/header_medium" 40 android:inflatedId="@+id/header_medium" 41 android:layout_width="fill_parent" 42 android:layout_height="wrap_content" 43 android:layout="@layout/quickcontact_header_med" /> 44 45 <ViewStub 46 android:id="@+id/header_large" 47 android:inflatedId="@+id/header_large" 48 android:layout_width="fill_parent" 49 android:layout_height="wrap_content" 50 android:layout="@layout/quickcontact_header_large" /> 51 52 </FrameLayout> 53 54 <HorizontalScrollView 55 android:id="@+id/scroll" 56 android:layout_width="fill_parent" 57 android:layout_height="wrap_content" 58 android:layout_below="@id/header" 59 android:fadingEdgeLength="0dip" 60 android:background="@drawable/quickcontact_slider_background" 61 android:scrollbars="none"> 62 63 <LinearLayout 64 android:id="@+id/quickcontact" 65 android:layout_width="wrap_content" 66 android:layout_height="wrap_content" 67 android:paddingTop="4dip" 68 android:paddingBottom="4dip" 69 android:orientation="horizontal"> 70 71 <ImageView 72 android:layout_width="wrap_content" 73 android:layout_height="wrap_content" 74 android:src="@drawable/quickcontact_slider_grip_left" /> 75 76 <ImageView 77 android:layout_width="wrap_content" 78 android:layout_height="wrap_content" 79 android:src="@drawable/quickcontact_slider_grip_right" /> 80 81 </LinearLayout> 82 83 </HorizontalScrollView> 84 85 <FrameLayout 86 android:id="@+id/footer" 87 android:layout_width="fill_parent" 88 android:layout_height="wrap_content" 89 android:layout_below="@id/scroll" 90 android:background="@drawable/quickcontact_bottom_frame" /> 91 92 <LinearLayout 93 android:id="@+id/footer_disambig" 94 android:layout_width="fill_parent" 95 android:layout_height="wrap_content" 96 android:layout_below="@id/scroll" 97 android:background="@drawable/quickcontact_disambig_bottom_bg" 98 android:orientation="vertical" 99 android:visibility="gone"> 100 101 <ListView 102 android:id="@android:id/list" 103 android:layout_width="fill_parent" 104 android:layout_height="0dip" 105 android:layout_weight="1" 106 android:background="@color/quickcontact_disambig" 107 android:divider="@drawable/quickcontact_disambig_divider" 108 android:cacheColorHint="@null" /> 109 110 <CheckBox 111 android:id="@android:id/checkbox" 112 android:layout_width="fill_parent" 113 android:layout_height="wrap_content" 114 android:layout_marginLeft="19dip" 115 android:layout_marginRight="19dip" 116 android:minHeight="60dip" 117 android:textColor="#f000" 118 android:textStyle="bold" 119 android:text="@string/quickcontact_remember_choice" 120 android:textAppearance="?android:attr/textAppearanceSmallInverse" 121 android:button="@drawable/quickcontact_disambig_checkbox" /> 122 123 </LinearLayout> 124 125 <ImageView 126 android:id="@+id/arrow_up" 127 android:layout_width="wrap_content" 128 android:layout_height="wrap_content" 129 android:src="@drawable/quickcontact_arrow_up" /> 130 131 <ImageView 132 android:id="@+id/arrow_down" 133 android:layout_width="wrap_content" 134 android:layout_height="wrap_content" 135 android:layout_marginTop="-1dip" 136 android:layout_below="@id/footer" 137 android:src="@drawable/quickcontact_arrow_down" /> 138 139 <ImageView 140 android:id="@+id/arrow_down_stub" 141 android:layout_width="wrap_content" 142 android:layout_height="wrap_content" 143 android:layout_marginTop="-1dip" 144 android:layout_below="@id/footer_disambig" 145 android:visibility="invisible" 146 android:src="@drawable/quickcontact_arrow_down" /> 147 148</RelativeLayout> 149