1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 ~ Copyright (C) 2021 The Android Open Source Project 4 ~ 5 ~ Licensed under the Apache License, Version 2.0 (the "License"); 6 ~ you may not use this file except in compliance with the License. 7 ~ You may obtain a copy of the License at 8 ~ 9 ~ http://www.apache.org/licenses/LICENSE-2.0 10 ~ 11 ~ Unless required by applicable law or agreed to in writing, software 12 ~ distributed under the License is distributed on an "AS IS" BASIS, 13 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 ~ See the License for the specific language governing permissions and 15 ~ limitations under the License. 16 --> 17<FrameLayout 18 xmlns:android="http://schemas.android.com/apk/res/android" 19 android:id="@+id/media_ttt_receiver_chip" 20 android:layout_width="wrap_content" 21 android:layout_height="wrap_content" 22 > 23 24 <com.android.systemui.media.taptotransfer.receiver.ReceiverChipRippleView 25 android:id="@+id/ripple" 26 android:layout_width="wrap_content" 27 android:layout_height="wrap_content" 28 /> 29 30 <FrameLayout 31 android:id="@+id/icon_container_view" 32 android:layout_width="wrap_content" 33 android:layout_height="wrap_content" 34 android:alpha="0.0" 35 > 36 <com.android.systemui.media.taptotransfer.receiver.ReceiverChipRippleView 37 android:id="@+id/icon_glow_ripple" 38 android:layout_width="wrap_content" 39 android:layout_height="wrap_content" 40 /> 41 42 <!-- Add a bottom margin to avoid the glow of the icon ripple from being cropped by screen 43 bounds while animating with the icon --> 44 <com.android.internal.widget.CachingIconView 45 android:id="@+id/app_icon" 46 android:background="@drawable/media_ttt_chip_background_receiver" 47 android:layout_width="@dimen/media_ttt_icon_size_receiver" 48 android:layout_height="@dimen/media_ttt_icon_size_receiver" 49 android:layout_gravity="center|bottom" 50 android:layout_marginBottom="@dimen/media_ttt_receiver_icon_bottom_margin" 51 /> 52 </FrameLayout> 53 54</FrameLayout> 55