f603a2c62d
UsbContaminant dialog no longer uses AlertActivity/AlertController as UI design has been updated to a custom design to support the Learn more option. The CL also incorporates string updates. Bug: 132737150 Test: dumpsys usb add-port "matrix" ufp; dumpsys usb set-contaminant-status "matrix" true Change-Id: I2b27e60e48986e669ef9bfe0239a56430d14a5a2
88 lines
2.9 KiB
XML
88 lines
2.9 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!--
|
|
/* //device/apps/common/res/layout/alert_dialog.xml
|
|
**
|
|
** Copyright 2019, 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/parentPanel"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:id="@+id/title"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:paddingTop="18dp"
|
|
android:paddingBottom="18dp"
|
|
android:textAlignment="center"
|
|
android:fontFamily="google-sans-medium"
|
|
android:textSize="20sp"
|
|
android:textStyle="bold"
|
|
android:textColor="?android:attr/textColorPrimary"/>
|
|
|
|
<TextView
|
|
android:id="@+id/message"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:paddingLeft="24dp"
|
|
android:paddingRight="24dp"
|
|
android:paddingBottom="24dp"
|
|
android:textAlignment="center"
|
|
android:textSize="16sp"
|
|
android:fontFamily="roboto-regular"
|
|
android:textColor="?android:attr/textColorPrimary" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:paddingBottom="8dp"
|
|
android:focusable="true">
|
|
|
|
<View
|
|
android:layout_width="match_parent"
|
|
android:layout_height="2dp"
|
|
android:background="@android:drawable/divider_horizontal_bright" />
|
|
|
|
<TextView
|
|
android:id="@+id/learnMore"
|
|
style="@style/USBContaminant.UserAction" />
|
|
|
|
<View
|
|
android:layout_width="match_parent"
|
|
android:layout_height="2dp"
|
|
android:background="@android:drawable/divider_horizontal_bright" />
|
|
|
|
<TextView
|
|
android:id="@+id/enableUsb"
|
|
style="@style/USBContaminant.UserAction" />
|
|
|
|
<View
|
|
android:layout_width="match_parent"
|
|
android:layout_height="2dp"
|
|
android:background="@android:drawable/divider_horizontal_bright" />
|
|
|
|
<TextView
|
|
android:id="@+id/gotIt"
|
|
style="@style/USBContaminant.UserAction" />
|
|
|
|
</LinearLayout>
|
|
</LinearLayout>
|