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:paddingStart="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:paddingStart="8dip" > 45 46 <TextView 47 android:id="@+id/data" 48 android:layout_width="wrap_content" 49 android:layout_height="wrap_content" 50 android:textAppearance="?android:attr/textAppearanceMedium" /> 51 52 <LinearLayout 53 android:layout_width="wrap_content" 54 android:layout_height="wrap_content" 55 android:orientation="horizontal"> 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:gravity="center" 66 android:scaleType="centerInside" /> 67 68 <TextView 69 android:id="@+id/type" 70 style="@style/ContactDetailItemType" 71 android:layout_width="wrap_content" 72 android:layout_height="wrap_content" /> 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 82 </LinearLayout> 83 84 </LinearLayout> 85 86 <View 87 android:id="@+id/vertical_divider" 88 android:layout_width="1dip" 89 android:layout_height="match_parent" 90 android:layout_marginTop="@dimen/detail_vertical_divider_vertical_margin" 91 android:layout_marginBottom="@dimen/detail_vertical_divider_vertical_margin" 92 android:background="?android:attr/dividerVertical" /> 93 94 <!-- Note: padding might be controlled programatically --> 95 <FrameLayout 96 android:id="@+id/secondary_action_view_container" 97 android:layout_width="wrap_content" 98 android:layout_height="match_parent" 99 android:paddingStart="@dimen/detail_item_icon_margin" 100 android:paddingEnd="@dimen/detail_item_icon_margin" 101 android:focusable="true" 102 android:background="?android:attr/selectableItemBackground" 103 android:nextFocusLeft="@id/actions_view_container"> 104 <ImageView 105 android:id="@+id/secondary_action_button" 106 android:layout_width="32dip" 107 android:layout_height="32dip" 108 android:layout_gravity="center_vertical" 109 android:duplicateParentState="false" /> 110 </FrameLayout> 111 </com.android.contacts.detail.ActionsViewContainer> 112 </FrameLayout> 113