1<?xml version="1.0" encoding="UTF-8"?> 2<!-- 3 Copyright (C) 2021 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<!-- Please keep filterTouchesWhenObscured=true; it's to prevent tapjacking. 19 See https://developer.android.com/privacy-and-security/risks/tapjacking --> 20<LinearLayout 21 xmlns:android="http://schemas.android.com/apk/res/android" 22 xmlns:tools="http://schemas.android.com/tools" 23 android:id="@+id/sud_layout_template_content" 24 android:layout_width="match_parent" 25 android:layout_height="match_parent" 26 android:filterTouchesWhenObscured="true" 27 android:orientation="vertical"> 28 29 <ViewStub 30 android:id="@+id/sud_layout_sticky_header" 31 android:layout_width="match_parent" 32 android:layout_height="wrap_content" /> 33 34 <!-- Ignore UnusedAttribute: scrollIndicators is new in M. Default to no indicators in older 35 versions. --> 36 <com.google.android.setupdesign.view.BottomScrollView 37 android:id="@+id/sud_scroll_view" 38 android:layout_width="match_parent" 39 android:layout_height="0dp" 40 android:layout_weight="1" 41 android:fillViewport="true" 42 android:scrollIndicators="?attr/sudScrollIndicators" 43 tools:ignore="UnusedAttribute"> 44 45 <LinearLayout 46 android:layout_width="match_parent" 47 android:layout_height="wrap_content" 48 android:orientation="vertical"> 49 50 <include layout="@layout/sud_glif_header" /> 51 52 <ViewStub 53 android:id="@+id/sud_loading_layout_illustration_stub" 54 android:layout_width="match_parent" 55 android:layout_height="0dp" 56 android:layout_weight="1" 57 android:inflatedId="@+id/sud_layout_progress_illustration" 58 android:layout="@layout/sud_loading_illustration_layout" /> 59 60 <ViewStub 61 android:id="@+id/sud_loading_layout_lottie_stub" 62 android:layout_width="match_parent" 63 android:layout_height="0dp" 64 android:layout_weight="1" 65 android:inflatedId="@+id/sud_layout_lottie_illustration" 66 android:layout="@layout/sud_loading_lottie_layout" /> 67 68 <FrameLayout 69 android:id="@+id/sud_layout_content" 70 android:layout_width="match_parent" 71 android:layout_height="wrap_content" 72 android:visibility="gone" /> 73 74 </LinearLayout> 75 76 </com.google.android.setupdesign.view.BottomScrollView> 77 78 <ViewStub 79 android:id="@+id/suc_layout_footer" 80 android:layout_width="match_parent" 81 android:layout_height="wrap_content" /> 82 83</LinearLayout> 84