blob: 86d8d23ceabf2b6abe1ec1f6f31181d706ab3b7a [file] [log] [blame]
<!--
~ 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.
-->
<androidx.constraintlayout.widget.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:clickable="false"
style="@style/SafetyCenter.StatusCard">
<ImageView
android:id="@+id/status_image"
android:layout_width="56dp"
android:layout_height="56dp"
android:scaleType="centerInside"
android:gravity="center"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintStart_toStartOf="parent"
android:src="@drawable/safety_status_info" />
<TextView
android:id="@+id/status_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintStart_toEndOf="@id/status_image"
android:layout_marginTop="4dp"
android:layout_marginStart="16dp"
android:text="@string/summary_placeholder"
android:textAppearance="@style/TextAppearance.SafetyStatusTitle" />
<TextView
android:id="@+id/status_summary"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:layout_constraintTop_toBottomOf="@id/status_title"
app:layout_constraintStart_toEndOf="@id/status_image"
android:layout_marginStart="16dp"
android:paddingBottom="8dp"
android:text="@string/summary_placeholder"
android:textAppearance="@style/TextAppearance.SafetyStatusSummary" />
<com.google.android.material.button.MaterialButton
android:id="@+id/rescan_button"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:layout_constraintTop_toBottomOf="@id/status_image"
app:layout_constraintStart_toStartOf="parent"
android:layout_marginTop="24dp"
android:text="@string/safety_center_rescan_button"
app:backgroundTint="@color/safety_center_button_info"
style="@style/SafetyCenter.MaterialActionButton" />
<com.android.permissioncontroller.permission.ui.widget.SafetyProtectionSectionView
android:id="@+id/safety_protection_section_view"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:layout_constraintTop_toBottomOf="@id/rescan_button"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"
android:layout_marginTop="20dp"
android:layout_marginBottom="0dp"
android:layout_gravity="center" />
</androidx.constraintlayout.widget.ConstraintLayout>