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