1<!-- 2 ~ Copyright (C) 2021 The Android Open Source Project 3 ~ 4 ~ Licensed under the Apache License, Version 2.0 (the "License"); 5 ~ you may not use this file except in compliance with the License. 6 ~ You may obtain a copy of the License at 7 ~ 8 ~ http://www.apache.org/licenses/LICENSE-2.0 9 ~ 10 ~ Unless required by applicable law or agreed to in writing, software 11 ~ distributed under the License is distributed on an "AS IS" BASIS, 12 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 ~ See the License for the specific language governing permissions and 14 ~ limitations under the License. 15 --> 16 17<merge 18 xmlns:android="http://schemas.android.com/apk/res/android" 19 > 20 21 <com.android.systemui.statusbar.chips.ui.view.ChipBackgroundContainer 22 android:id="@+id/ongoing_activity_chip_background" 23 android:layout_width="wrap_content" 24 android:layout_height="@dimen/ongoing_appops_chip_height" 25 android:layout_gravity="center_vertical" 26 android:gravity="center" 27 android:background="@drawable/ongoing_activity_chip_bg" 28 android:paddingStart="@dimen/ongoing_activity_chip_side_padding_legacy" 29 android:paddingEnd="@dimen/ongoing_activity_chip_side_padding_legacy" 30 android:minWidth="@dimen/min_clickable_item_size" 31 > 32 33 <ImageView 34 android:src="@*android:drawable/ic_phone" 35 android:id="@+id/ongoing_activity_chip_icon" 36 android:contentDescription="@string/ongoing_call_content_description" 37 android:layout_width="@dimen/ongoing_activity_chip_icon_size" 38 android:layout_height="@dimen/ongoing_activity_chip_icon_size" 39 android:tint="?android:attr/colorPrimary" 40 /> 41 42 <!-- Only one of [ongoing_activity_chip_time, ongoing_activity_chip_text, 43 ongoing_activity_chip_short_time_delta] will ever be shown at one time. --> 44 45 <!-- Shows a timer, like 00:01. --> 46 <com.android.systemui.statusbar.chips.ui.view.ChipChronometer 47 android:id="@+id/ongoing_activity_chip_time" 48 style="@style/StatusBar.Chip.Text" 49 /> 50 51 <!-- Shows generic text. --> 52 <com.android.systemui.statusbar.chips.ui.view.ChipTextView 53 android:id="@+id/ongoing_activity_chip_text" 54 style="@style/StatusBar.Chip.Text" 55 android:visibility="gone" 56 /> 57 58 <!-- Shows a time delta in short form, like "15min" or "1hr". --> 59 <com.android.systemui.statusbar.chips.ui.view.ChipDateTimeView 60 android:id="@+id/ongoing_activity_chip_short_time_delta" 61 style="@style/StatusBar.Chip.Text" 62 android:visibility="gone" 63 /> 64 65 </com.android.systemui.statusbar.chips.ui.view.ChipBackgroundContainer> 66</merge> 67