1<?xml version="1.0" encoding="utf-8"?> 2 3<!-- 4 ~ Copyright (C) 2013 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<!-- Can't use merge here because this is referenced via a ViewStub --> 20<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" 21 android:id="@+id/badge_container" 22 android:layout_width="match_parent" 23 android:layout_height="wrap_content"> 24 25 <View android:layout_width="match_parent" 26 android:layout_height="1px" 27 android:background="@color/favorite_contacts_separator_color" /> 28 29 <LinearLayout android:id="@+id/badge_link_container" 30 android:layout_width="match_parent" 31 android:layout_height="wrap_content" 32 android:paddingStart="@dimen/call_log_outer_margin" 33 android:paddingEnd="@dimen/call_log_outer_margin" 34 android:paddingTop="@dimen/call_log_item_extra_padding_vertical" 35 android:paddingBottom="@dimen/call_log_item_extra_padding_vertical" 36 android:background="?android:attr/selectableItemBackground" 37 android:clickable="true"> 38 39 <ImageView android:id="@+id/badge_image" 40 android:layout_width="wrap_content" 41 android:layout_height="wrap_content" 42 android:tint="@color/call_log_extras_text_color" 43 android:padding="@dimen/call_log_outer_margin" /> 44 45 <TextView android:id="@+id/badge_text" 46 android:layout_width="wrap_content" 47 android:layout_height="wrap_content" 48 android:paddingStart="@dimen/call_log_start_margin" 49 android:textColor="@color/call_log_extras_text_color" 50 android:layout_gravity="center_vertical" 51 android:layout_weight="1" /> 52 53 <ImageView android:id="@+id/dismiss_button" 54 android:layout_width="wrap_content" 55 android:layout_height="wrap_content" 56 android:padding="@dimen/icon_padding" 57 android:layout_gravity="center_vertical" 58 android:layout_marginEnd="@dimen/call_log_icon_margin" 59 android:src="@drawable/ic_close_dk" 60 android:tint="@color/recent_call_log_item_phone_icon_tint" 61 android:alpha="0.3" 62 android:background="?android:attr/selectableItemBackground" 63 android:visibility="gone" 64 android:contentDescription="@string/description_dismiss" /> 65 66 </LinearLayout> 67 68</FrameLayout>