1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3/* 4 * Copyright (C) 2007-2008 Esmertec AG. 5 * Copyright (C) 2007-2008 The Android Open Source Project 6 * 7 * Licensed under the Apache License, Version 2.0 (the "License"); 8 * you may not use this file except in compliance with the License. 9 * You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, software 14 * distributed under the License is distributed on an "AS IS" BASIS, 15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 * See the License for the specific language governing permissions and 17 * limitations under the License. 18 */ 19--> 20<com.android.im.app.ContactListView xmlns:android="http://schemas.android.com/apk/res/android" 21 android:layout_width="fill_parent" 22 android:layout_height="fill_parent" 23 android:id="@+id/contactListView" 24 android:orientation="vertical"> 25 26 <com.android.im.app.UserPresenceView 27 android:id="@+id/userPresence" 28 android:orientation="horizontal" 29 android:layout_width="fill_parent" 30 android:layout_height="64dip" 31 android:layout_centerVertical="true" 32 android:paddingTop="9dip" 33 android:paddingLeft="5dip" 34 android:paddingBottom="5dip" 35 android:paddingRight="5dip" 36 android:background="#ffa9a9a9"> 37 38 <LinearLayout 39 android:layout_width="wrap_content" 40 android:layout_height="fill_parent" 41 android:layout_gravity="center_vertical"> 42 43 <ImageButton android:id="@+id/statusDropDownButton" 44 android:paddingTop="2dip" 45 android:layout_marginRight="4dip" 46 android:paddingBottom="2dip" 47 android:scaleType="fitCenter" 48 android:layout_width="wrap_content" 49 android:layout_height="wrap_content" 50 android:layout_gravity="center_vertical"/> 51 52 </LinearLayout> 53 54 <EditText android:id="@+id/statusEdit" 55 android:inputType="textCapSentences|textAutoCorrect" 56 android:selectAllOnFocus="true" 57 android:layout_gravity="center_vertical" 58 android:layout_weight="1" 59 android:layout_width="0dip" 60 android:layout_height="wrap_content" 61 android:singleLine="true" 62 android:textAppearance="?android:attr/textAppearanceMediumInverse" 63 android:visibility="gone"/> 64 65 <TextView android:id="@+id/statusView" 66 android:layout_width="fill_parent" 67 android:layout_height="wrap_content" 68 android:gravity="center_vertical" 69 android:paddingTop="5dip" 70 android:paddingLeft="3dip" 71 android:singleLine="true" 72 android:visibility="gone" 73 android:textAppearance="?android:attr/textAppearanceLargeInverse"/> 74 75 </com.android.im.app.UserPresenceView> 76 77 <ExpandableListView android:id="@+id/contactsList" 78 android:layout_width="fill_parent" 79 android:layout_height="fill_parent" 80 android:nextFocusUp="@id/statusDropDownButton" /> 81 82</com.android.im.app.ContactListView> 83