1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- 3 /* 4 * Copyright 2010, 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 android:paddingStart="16dip"> 27 28 <com.android.contacts.detail.ActionsViewContainer 29 android:id="@+id/actions_view_container" 30 android:layout_width="match_parent" 31 android:layout_height="wrap_content" 32 android:minHeight="@dimen/detail_min_line_item_height" 33 android:gravity="center_vertical" 34 android:orientation="horizontal" 35 android:focusable="true" 36 android:background="?android:attr/selectableItemBackground" 37 android:nextFocusRight="@+id/secondary_action_view_container"> 38 39 <!-- Note: padding might be controlled programatically --> 40 <LinearLayout 41 android:id="@+id/primary_action_view" 42 android:layout_width="wrap_content" 43 android:layout_height="wrap_content" 44 android:layout_gravity="center_vertical" 45 android:layout_weight="1" 46 android:paddingLeft="8dip" 47 android:paddingStart="8dip" 48 android:orientation="vertical"> 49 50 <TextView 51 android:id="@+id/data" 52 android:layout_width="wrap_content" 53 android:layout_height="wrap_content" 54 android:textAppearance="?android:attr/textAppearanceMedium" /> 55 </LinearLayout> 56 57 <ImageView 58 android:id="@+id/presence_icon" 59 android:layout_width="wrap_content" 60 android:layout_height="wrap_content" 61 android:layout_marginTop="1dip" 62 android:layout_marginRight="4dip" 63 android:layout_marginEnd="4dip" 64 android:layout_gravity="center_vertical" 65 android:scaleType="centerInside" /> 66 67 <TextView 68 android:id="@+id/kind" 69 android:layout_width="wrap_content" 70 android:layout_height="wrap_content" 71 android:layout_gravity="center_vertical" 72 android:visibility="gone" /> 73 74 <View 75 android:id="@+id/primary_indicator" 76 android:layout_width="16dip" 77 android:layout_height="16dip" 78 android:visibility="gone" 79 android:layout_gravity="center_vertical" 80 android:background="@drawable/ic_list_default_mime_holo_dark" 81 android:layout_marginRight="8dip" 82 android:layout_marginEnd="8dip" /> 83 84 <TextView 85 android:id="@+id/type" 86 style="@style/ContactDetailItemType" 87 android:layout_width="wrap_content" 88 android:layout_height="wrap_content" 89 android:layout_gravity="center_vertical" 90 android:paddingRight="16dip" 91 android:paddingEnd="16dip" /> 92 93 <View 94 android:id="@+id/vertical_divider" 95 android:layout_width="1px" 96 android:layout_height="match_parent" 97 android:layout_marginTop="@dimen/detail_vertical_divider_vertical_margin" 98 android:layout_marginBottom="@dimen/detail_vertical_divider_vertical_margin" 99 android:background="?android:attr/dividerVertical" /> 100 101 <!-- Note: padding might be controlled programatically --> 102 <FrameLayout 103 android:id="@+id/secondary_action_view_container" 104 android:layout_width="wrap_content" 105 android:layout_height="match_parent" 106 android:paddingLeft="@dimen/detail_item_icon_margin" 107 android:paddingRight="@dimen/detail_item_icon_margin" 108 android:paddingStart="@dimen/detail_item_icon_margin" 109 android:paddingEnd="@dimen/detail_item_icon_margin" 110 android:duplicateParentState="false" 111 android:focusable="true" 112 android:background="?android:attr/selectableItemBackground" 113 android:nextFocusLeft="@id/actions_view_container"> 114 <ImageView 115 android:id="@+id/secondary_action_button" 116 android:layout_width="32dip" 117 android:layout_height="match_parent" 118 android:layout_centerVertical="true" 119 android:gravity="center" 120 android:scaleType="center" 121 android:duplicateParentState="false" /> 122 </FrameLayout> 123 </com.android.contacts.detail.ActionsViewContainer> 124 </FrameLayout> 125