screenshot: https://screenshot.googleplex.com/8UyMj5q7tLJ2uA8.png Bug: 187611525 Test: make SettingsRoboTests Change-Id: Iefec51d9ca6d27c9173af0756301f4278e928433
		
			
				
	
	
		
			64 lines
		
	
	
		
			2.8 KiB
		
	
	
	
		
			XML
		
	
	
	
	
	
			
		
		
	
	
			64 lines
		
	
	
		
			2.8 KiB
		
	
	
	
		
			XML
		
	
	
	
	
	
| <?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.
 | |
|   -->
 | |
| 
 | |
| <FrameLayout
 | |
|     xmlns:android="http://schemas.android.com/apk/res/android"
 | |
|     android:layout_width="match_parent"
 | |
|     android:layout_height="wrap_content">
 | |
|     <com.google.android.material.card.MaterialCardView
 | |
|         android:id="@+id/container"
 | |
|         android:layout_width="match_parent"
 | |
|         android:layout_height="wrap_content"
 | |
|         android:layout_margin="8dp"
 | |
|         android:importantForAccessibility="yes"
 | |
|         style="@style/ContextualCardStyle">
 | |
|         <LinearLayout
 | |
|             android:layout_width="match_parent"
 | |
|             android:layout_height="wrap_content"
 | |
|             android:gravity="top|start"
 | |
|             android:orientation="vertical"
 | |
|             android:padding="20dp"
 | |
|             android:background="@color/battery_info_error_color_red">
 | |
| 
 | |
|             <ImageView
 | |
|                 android:id="@+id/battery_icon"
 | |
|                 android:src="@drawable/ic_warning_24dp"
 | |
|                 android:tint="@*android:color/material_red_A700"
 | |
|                 android:layout_width="wrap_content"
 | |
|                 android:layout_height="wrap_content" />
 | |
| 
 | |
|             <TextView android:id="@+id/summary_text"
 | |
|                       android:layout_width="match_parent"
 | |
|                       android:layout_height="wrap_content"
 | |
|                       android:layout_marginTop="12dp"
 | |
|                       android:layout_marginBottom="16dp"
 | |
|                       android:text="@string/battery_missing_message"
 | |
|                       android:textColor="@color/battery_info_error_color_black"
 | |
|                       android:textAppearance="?android:attr/textAppearanceListItem" />
 | |
| 
 | |
|             <TextView android:id="@+id/link_text"
 | |
|                       android:layout_width="wrap_content"
 | |
|                       android:layout_height="wrap_content"
 | |
|                       android:layout_gravity="end"
 | |
|                       android:text="@string/battery_missing_link_message"
 | |
|                       android:textAppearance="?android:attr/textAppearanceListItemSecondary"
 | |
|                       android:textColor="@*android:color/material_red_A700"
 | |
|                       android:contentDescription="@string/battery_missing_link_a11y_message" />
 | |
|         </LinearLayout>
 | |
|     </com.google.android.material.card.MaterialCardView>
 | |
| </FrameLayout>
 |