1<?xml version="1.0" encoding="utf-8"?><!-- 2 Copyright 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<!-- 18Setting stateListAnimator to null to remove default shadows on the button and make it look 19similar to the custom emulated button in backport implementation. The corner radius of the ripple 20matches the one that is applied to the button later. 21 --> 22<Button xmlns:android="http://schemas.android.com/apk/res/android" 23 xmlns:app="http://schemas.android.com/apk/res-auto" 24 app:glance_isTopLevelLayout="true" 25 android:layout_width="wrap_content" 26 android:layout_height="wrap_content" 27 android:foreground="@drawable/glance_button_ripple" 28 android:minHeight="0dp" 29 android:minWidth="0dp" 30 android:stateListAnimator="@null" 31 style="@style/Glance.AppWidget.Button"/>