1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- 3 /* 4 * Copyright 2009, The Android Open Source Project 5 * 6 * Licensed under the Apache License, Version 2.0 (the "License"); 7 * you may not use this file except in compliance with the License. 8 * You may obtain a copy of the License at 9 * 10 * http://www.apache.org/licenses/LICENSE-2.0 11 * 12 * Unless required by applicable law or agreed to in writing, software 13 * distributed under the License is distributed on an "AS IS" BASIS, 14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 * See the License for the specific language governing permissions and 16 * limitations under the License. 17 */ 18 --> 19 20 <!-- Note: padding might be controlled programatically --> 21 <FrameLayout 22 xmlns:android="http://schemas.android.com/apk/res/android" 23 android:layout_width="match_parent" 24 android:layout_height="wrap_content" 25 android:paddingLeft="16dip"> 26 27 <com.android.contacts.detail.ActionsViewContainer 28 android:id="@+id/actions_view_container" 29 android:layout_width="match_parent" 30 android:layout_height="wrap_content" 31 android:orientation="horizontal" 32 android:focusable="true" 33 android:background="?android:attr/selectableItemBackground" 34 android:nextFocusRight="@+id/secondary_action_view_container" 35 android:minHeight="@dimen/detail_min_line_item_height"> 36 37 <!-- Note: padding might be controlled programatically --> 38 <LinearLayout 39 android:id="@+id/primary_action_view" 40 android:layout_width="0dip" 41 android:layout_height="wrap_content" 42 android:layout_weight="1" 43 android:orientation="vertical" 44 android:paddingLeft="8dip" 45 android:gravity="center_vertical"> 46 47 <TextView 48 android:id="@+id/data" 49 android:layout_width="wrap_content" 50 android:layout_height="wrap_content" 51 android:layout_gravity="center_vertical" 52 android:textAppearance="?android:attr/textAppearanceMedium" /> 53 54 <LinearLayout 55 android:layout_width="wrap_content" 56 android:layout_height="wrap_content" 57 android:orientation="horizontal"> 58 59 <ImageView 60 android:id="@+id/presence_icon" 61 android:layout_width="wrap_content" 62 android:layout_height="wrap_content" 63 android:layout_marginTop="1dip" 64 android:layout_marginRight="4dip" 65 android:layout_gravity="center_vertical" 66 android:gravity="center" 67 android:scaleType="centerInside" /> 68 69 <TextView 70 android:id="@+id/type" 71 style="@style/ContactDetailItemType" 72 android:layout_width="wrap_content" 73 android:layout_height="wrap_content" /> 74 75 <View 76 android:id="@+id/primary_indicator" 77 android:layout_width="16dip" 78 android:layout_height="16dip" 79 android:visibility="gone" 80 android:layout_gravity="center_vertical" 81 android:background="@drawable/ic_list_default_mime_holo_dark" /> 82 83 </LinearLayout> 84 85 </LinearLayout> 86 87 <View 88 android:id="@+id/vertical_divider" 89 android:layout_width="1dip" 90 android:layout_height="match_parent" 91 android:layout_marginTop="@dimen/detail_vertical_divider_vertical_margin" 92 android:layout_marginBottom="@dimen/detail_vertical_divider_vertical_margin" 93 android:background="?android:attr/dividerVertical" /> 94 95 <!-- Note: padding might be controlled programatically --> 96 <FrameLayout 97 android:id="@+id/secondary_action_view_container" 98 android:layout_width="wrap_content" 99 android:layout_height="match_parent" 100 android:paddingLeft="@dimen/detail_item_icon_margin" 101 android:paddingRight="@dimen/detail_item_icon_margin" 102 android:focusable="true" 103 android:background="?android:attr/selectableItemBackground" 104 android:nextFocusLeft="@id/actions_view_container"> 105 <ImageView 106 android:id="@+id/secondary_action_button" 107 android:layout_width="32dip" 108 android:layout_height="32dip" 109 android:layout_gravity="center_vertical" 110 android:duplicateParentState="false" /> 111 </FrameLayout> 112 </com.android.contacts.detail.ActionsViewContainer> 113 </FrameLayout> 114