Add generic Identity Check promo card in safety center. This card states that Identity Check has expanded to all surfaces. Screenshots: https://drive.google.com/drive/folders/15sxaeGECqjaDKPfI77H42pmHqpRnXd83?usp=drive_link Bug: 419075086 Fixes: 415061423 Flag: android.hardware.biometrics.identity_check_all_surfaces Test: atest IdentityCheckSafetySourceTest IdentityCheckPromoCardActivityTest IdentityCheckPromoCardFragmentTest Change-Id: I8372ddcfb077b91aaf0cf0cc58cf53f8e0385813
70 lines
2.9 KiB
XML
70 lines
2.9 KiB
XML
<!--
|
|
Copyright (C) 2025 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"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
xmlns:androidprv="http://schemas.android.com/apk/prv/res/android"
|
|
android:id="@+id/bottom_sheet"
|
|
android:padding="24dp"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="vertical"
|
|
app:layout_behavior="@string/bottom_sheet_behavior">
|
|
|
|
<androidx.core.widget.NestedScrollView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:fillViewport="true">
|
|
<LinearLayout
|
|
android:id="@+id/scrollableLayout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="vertical">
|
|
<ImageView
|
|
android:id="@+id/illustration"
|
|
android:paddingTop="24dp"
|
|
android:gravity="center_horizontal"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:importantForAccessibility="no"
|
|
android:src="@drawable/identity_check_promo_card_illustration"/>
|
|
|
|
<TextView
|
|
android:id="@+id/title"
|
|
android:textAppearance="@style/TextAppearance.SettingsLib.HeadlineSmall"
|
|
android:textColor="@androidprv:color/materialColorOnSurface"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:paddingTop="8dp"
|
|
android:orientation="vertical"
|
|
android:gravity="center"
|
|
android:text="@string/identity_check_promo_card_title"/>
|
|
|
|
<TextView
|
|
android:id="@+id/summary"
|
|
android:textAppearance="@style/TextAppearance.SettingsLib.BodySmall"
|
|
android:textColor="@androidprv:color/materialColorOnSurfaceVariant"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:paddingTop="8dp"
|
|
android:paddingBottom="16dp"
|
|
android:orientation="vertical"
|
|
android:text="@string/identity_check_promo_card_summary"/>
|
|
</LinearLayout>
|
|
</androidx.core.widget.NestedScrollView>
|
|
</LinearLayout>
|