| <?xml version="1.0" encoding="utf-8"?> |
| <!-- Copyright (C) 2021 The Android Open Source Project |
| |
| Licensed under the Apache License, Version 2.0 (the "License"); |
| you may not use this file except in compliance with the License. |
| You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| android:id="@+id/activity_confirmation" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:background="@drawable/dialog_background" |
| android:elevation="16dp" |
| android:maxHeight="400dp" |
| android:orientation="vertical" |
| android:padding="18dp" |
| android:layout_gravity="center"> |
| |
| <!-- Do NOT change the ID of the root LinearLayout above: it's referenced in CTS tests. --> |
| |
| <TextView |
| android:id="@+id/title" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:gravity="center" |
| android:paddingHorizontal="12dp" |
| style="@*android:style/TextAppearance.Widget.Toolbar.Title"/> |
| |
| <TextView |
| android:id="@+id/summary" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:layout_marginTop="12dp" |
| android:layout_marginBottom="12dp" |
| android:gravity="center" |
| android:textColor="?android:attr/textColorSecondary" |
| android:textSize="14sp" /> |
| |
| <RelativeLayout |
| android:layout_width="match_parent" |
| android:layout_height="0dp" |
| android:layout_weight="1"> |
| |
| <ListView |
| android:id="@+id/device_list" |
| style="@android:style/Widget.Material.ListView" |
| android:layout_width="match_parent" |
| android:layout_height="200dp" /> |
| |
| </RelativeLayout> |
| |
| <LinearLayout |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:orientation="horizontal" |
| android:gravity="end"> |
| |
| <!-- Do NOT change the IDs of the buttons: they are referenced in CTS tests. --> |
| |
| <Button |
| android:id="@+id/btn_negative" |
| style="@android:style/Widget.Material.Button.Borderless.Colored" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:text="@string/consent_no" |
| android:textColor="?android:attr/textColorSecondary" /> |
| |
| <Button |
| android:id="@+id/btn_positive" |
| style="@android:style/Widget.Material.Button.Borderless.Colored" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:text="@string/consent_yes" /> |
| |
| </LinearLayout> |
| |
| </LinearLayout> |