Gurpreet Singh | 7138788 | 2023-01-09 19:07:43 +0000 | [diff] [blame] | 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 | android:id="@+id/resolver_empty_state" |
| 20 | android:layout_width="match_parent" |
| 21 | android:layout_height="wrap_content" |
| 22 | android:gravity="center_horizontal" |
| 23 | android:visibility="gone" |
| 24 | android:paddingStart="24dp" |
| 25 | android:paddingEnd="24dp"> |
| 26 | <RelativeLayout |
| 27 | android:id="@+id/resolver_empty_state_container" |
| 28 | android:layout_width="match_parent" |
| 29 | android:layout_height="wrap_content" |
| 30 | android:paddingTop="@dimen/resolver_empty_state_container_padding_top" |
| 31 | android:paddingBottom="@dimen/resolver_empty_state_container_padding_bottom" |
| 32 | android:gravity="center_horizontal"> |
| 33 | <TextView |
| 34 | android:id="@+id/resolver_empty_state_title" |
| 35 | android:layout_below="@+id/resolver_empty_state_icon" |
| 36 | android:layout_width="wrap_content" |
| 37 | android:layout_height="wrap_content" |
| 38 | android:fontFamily="@string/config_headlineFontFamilyMedium" |
| 39 | android:textColor="?android:attr/textColorPrimary" |
| 40 | android:textSize="18sp" |
| 41 | android:lineHeight="24sp" |
| 42 | android:gravity="center_horizontal" |
| 43 | android:layout_centerHorizontal="true" /> |
| 44 | <TextView |
| 45 | android:id="@+id/resolver_empty_state_subtitle" |
| 46 | android:layout_below="@+id/resolver_empty_state_title" |
| 47 | android:layout_marginTop="16dp" |
| 48 | android:layout_width="wrap_content" |
| 49 | android:layout_height="wrap_content" |
| 50 | android:textColor="?android:attr/textColorSecondary" |
| 51 | android:textSize="14sp" |
| 52 | android:lineHeight="20sp" |
| 53 | android:gravity="center_horizontal" |
| 54 | android:layout_centerHorizontal="true" /> |
| 55 | <Button |
| 56 | android:id="@+id/resolver_empty_state_button" |
| 57 | android:layout_below="@+id/resolver_empty_state_subtitle" |
| 58 | android:layout_marginTop="16dp" |
| 59 | android:text="@string/resolver_switch_on_work" |
| 60 | android:layout_width="wrap_content" |
| 61 | android:layout_height="wrap_content" |
| 62 | android:padding="12dp" |
| 63 | android:fontFamily="@string/config_headlineFontFamilyMedium" |
| 64 | android:textSize="14sp" |
| 65 | android:textColor="?android:attr/textColorPrimary" |
| 66 | android:layout_centerHorizontal="true" |
| 67 | android:background="@drawable/chooser_action_button_bg" |
| 68 | /> |
| 69 | <ProgressBar |
| 70 | android:id="@+id/resolver_empty_state_progress" |
| 71 | style="@style/Widget.Material.Light.ProgressBar" |
| 72 | android:visibility="gone" |
| 73 | android:layout_width="wrap_content" |
| 74 | android:layout_height="match_parent" |
| 75 | android:indeterminate="true" |
| 76 | android:layout_alignTop="@+id/resolver_empty_state_icon" |
| 77 | android:layout_alignBottom="@+id/resolver_empty_state_button" |
| 78 | android:layout_centerHorizontal="true" |
| 79 | android:layout_below="@+id/resolver_empty_state_subtitle" |
| 80 | android:indeterminateTint="?attr/colorAccent"/> |
| 81 | </RelativeLayout> |
| 82 | <TextView android:id="@+id/empty" |
| 83 | android:layout_width="match_parent" |
| 84 | android:layout_height="wrap_content" |
| 85 | android:background="?attr/colorBackground" |
| 86 | android:text="@string/noApplications" |
| 87 | android:padding="@dimen/chooser_edge_margin_normal" |
| 88 | android:layout_marginBottom="56dp" |
| 89 | android:gravity="center"/> |
| 90 | </RelativeLayout> |