1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 Copyright (C) 2019 The Android Open Source Project 4 5 Licensed under the Apache License, Version 2.0 (the "License"); 6 you may not use this file except in compliance with the License. 7 You may obtain a copy of the License at 8 9 http://www.apache.org/licenses/LICENSE-2.0 10 11 Unless required by applicable law or agreed to in writing, software 12 distributed under the License is distributed on an "AS IS" BASIS, 13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 See the License for the specific language governing permissions and 15 limitations under the License. 16--> 17 18<LinearLayout 19 xmlns:android="http://schemas.android.com/apk/res/android" 20 style="@style/EntityHeader" 21 android:layout_width="match_parent" 22 android:layout_height="wrap_content" 23 android:layout_centerHorizontal="true" 24 android:gravity="center_horizontal" 25 android:orientation="vertical" 26 android:paddingStart="16dp" 27 android:paddingEnd="16dp"> 28 29 <ImageView 30 android:id="@android:id/icon" 31 android:layout_width="@dimen/wifi_dpp_fragment_icon_width_height" 32 android:layout_height="@dimen/wifi_dpp_fragment_icon_width_height" 33 android:scaleType="fitCenter"/> 34 35 <!-- Special header icon only for ic_devices_check_circle_green --> 36 <ImageView 37 android:id="@+id/devices_check_circle_green_icon" 38 android:layout_width="wrap_content" 39 android:layout_height="wrap_content" 40 android:src="@drawable/ic_devices_check_circle_green" 41 android:scaleType="fitCenter"/> 42 43 <!-- Add title_summary_container to group content for Talkback --> 44 <LinearLayout 45 android:id="@+id/title_summary_container" 46 android:layout_width="wrap_content" 47 android:layout_height="wrap_content" 48 android:orientation="vertical" 49 android:focusable="true"> 50 51 <TextView 52 android:id="@android:id/title" 53 style="@style/TextAppearance.EntityHeaderTitle" 54 android:layout_width="match_parent" 55 android:layout_height="wrap_content" 56 android:gravity="center_horizontal" 57 android:textAlignment="center" 58 android:layout_marginTop="8dp" 59 android:paddingStart="32dp" 60 android:paddingEnd="32dp"/> 61 62 <TextView 63 android:id="@android:id/summary" 64 style="@style/TextAppearance.EntityHeaderSummary" 65 android:layout_width="match_parent" 66 android:layout_height="wrap_content" 67 android:singleLine="false" 68 android:gravity="center_horizontal" 69 android:textAlignment="center" 70 android:layout_marginTop="2dp" 71 android:paddingStart="32dp" 72 android:paddingEnd="32dp"/> 73 </LinearLayout> 74</LinearLayout> 75