1<!-- 2 ~ Copyright (C) 2020 The Android Open Source Project 3 ~ 4 ~ Licensed under the Apache License, Version 2.0 (the "License"); 5 ~ you may not use this file except in compliance with the License. 6 ~ You may obtain a copy of the License at 7 ~ 8 ~ http://www.apache.org/licenses/LICENSE-2.0 9 ~ 10 ~ Unless required by applicable law or agreed to in writing, software 11 ~ distributed under the License is distributed on an "AS IS" BASIS, 12 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 ~ See the License for the specific language governing permissions and 14 ~ limitations under the License. 15 --> 16 17<RelativeLayout 18 xmlns:android="http://schemas.android.com/apk/res/android" 19 xmlns:androidprv="http://schemas.android.com/apk/prv/res/android" 20 android:id="@androidprv:id/resolver_empty_state" 21 android:layout_width="match_parent" 22 android:layout_height="wrap_content" 23 android:gravity="center_horizontal" 24 android:visibility="gone" 25 android:paddingStart="24dp" 26 android:paddingEnd="24dp"> 27 <RelativeLayout 28 android:id="@androidprv:id/resolver_empty_state_container" 29 android:layout_width="match_parent" 30 android:layout_height="wrap_content" 31 android:paddingTop="@dimen/resolver_empty_state_container_padding_top" 32 android:paddingBottom="@dimen/resolver_empty_state_container_padding_bottom" 33 android:gravity="center_horizontal"> 34 <TextView 35 android:id="@androidprv:id/resolver_empty_state_title" 36 android:layout_below="@androidprv:id/resolver_empty_state_icon" 37 android:layout_width="wrap_content" 38 android:layout_height="wrap_content" 39 android:fontFamily="@androidprv:string/config_headlineFontFamilyMedium" 40 android:textColor="?android:attr/textColorPrimary" 41 android:textSize="18sp" 42 android:lineHeight="24sp" 43 android:gravity="center_horizontal" 44 android:layout_centerHorizontal="true" /> 45 <TextView 46 android:id="@androidprv:id/resolver_empty_state_subtitle" 47 android:layout_below="@androidprv:id/resolver_empty_state_title" 48 android:layout_marginTop="16dp" 49 android:layout_width="wrap_content" 50 android:layout_height="wrap_content" 51 android:textColor="?android:attr/textColorSecondary" 52 android:textSize="14sp" 53 android:lineHeight="20sp" 54 android:gravity="center_horizontal" 55 android:layout_centerHorizontal="true" /> 56 <Button 57 android:id="@androidprv:id/resolver_empty_state_button" 58 android:layout_below="@androidprv:id/resolver_empty_state_subtitle" 59 android:layout_marginTop="16dp" 60 android:text="@string/resolver_switch_on_work" 61 android:layout_width="wrap_content" 62 android:layout_height="wrap_content" 63 android:padding="12dp" 64 android:fontFamily="@androidprv:string/config_headlineFontFamilyMedium" 65 android:textSize="14sp" 66 android:textColor="?android:attr/textColorPrimary" 67 android:layout_centerHorizontal="true" 68 android:background="@drawable/chooser_action_button_bg" 69 /> 70 <ProgressBar 71 android:id="@androidprv:id/resolver_empty_state_progress" 72 style="@android:style/Widget.Material.Light.ProgressBar" 73 android:visibility="gone" 74 android:layout_width="wrap_content" 75 android:layout_height="match_parent" 76 android:indeterminate="true" 77 android:layout_alignTop="@androidprv:id/resolver_empty_state_icon" 78 android:layout_alignBottom="@androidprv:id/resolver_empty_state_button" 79 android:layout_centerHorizontal="true" 80 android:layout_below="@androidprv:id/resolver_empty_state_subtitle" 81 android:indeterminateTint="?android:attr/colorAccent"/> 82 <TextView 83 android:id="@android:id/empty" 84 android:layout_width="match_parent" 85 android:layout_height="wrap_content" 86 android:text="@string/noApplications" 87 android:textColor="@androidprv:color/materialColorOnSurfaceVariant" 88 android:padding="@dimen/chooser_edge_margin_normal" 89 android:gravity="center"/> 90 </RelativeLayout> 91</RelativeLayout> 92