xref: /aosp_15_r20/external/setupdesign/main/res/layout/sud_glif_header.xml (revision 08b10bc90c046e75ac65a61e706e6813a800914d)
1<?xml version="1.0" encoding="UTF-8"?>
2<!--
3    Copyright (C) 2015 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 xmlns:android="http://schemas.android.com/apk/res/android"
19    xmlns:app="http://schemas.android.com/apk/res-auto"
20    android:id="@+id/sud_layout_header"
21    style="@style/SudGlifHeaderContainer"
22    android:layout_width="match_parent"
23    android:layout_height="wrap_content"
24    android:filterTouchesWhenObscured="true"
25    android:orientation="vertical">
26
27    <ProgressBar
28        android:id="@+id/sud_glif_top_progress_bar"
29        style="?android:attr/progressBarStyleHorizontal"
30        android:layout_width="match_parent"
31        android:layout_height="wrap_content"
32        android:layout_marginLeft="?attr/sudMarginStart"
33        android:layout_marginRight="?attr/sudMarginStart"
34        android:visibility="gone"
35        android:indeterminate="true" />
36
37    <ViewStub
38        android:id="@+id/sud_glif_top_progress_indicator_stub"
39        android:layout_width="match_parent"
40        android:layout_height="wrap_content"
41        android:layout_marginLeft="?attr/sudMarginStart"
42        android:layout_marginRight="?attr/sudMarginStart"
43        android:paddingBottom="@dimen/sud_glif_expressive_progress_indicator_padding_bottom"
44        android:inflatedId="@+id/sud_layout_progress_indicator"
45        android:layout="@layout/sud_progress_indicator" />
46
47    <FrameLayout
48        android:id="@+id/sud_layout_icon_container"
49        style="@style/SudGlifIconContainer"
50        android:layout_width="match_parent"
51        android:layout_height="wrap_content"
52        android:visibility="gone" >
53        <ImageView
54            android:id="@+id/sud_layout_icon"
55            style="?attr/sudGlifIconStyle"
56            android:layout_width="wrap_content"
57            android:layout_height="wrap_content"
58            android:contentDescription="@null"
59            android:visibility="gone" />
60    </FrameLayout>
61
62    <TextView
63        android:id="@+id/suc_layout_title"
64        style="?attr/sudGlifHeaderTitleStyle"
65        android:layout_width="match_parent"
66        android:layout_height="wrap_content" />
67
68    <include layout="@layout/sud_glif_profile" />
69
70    <ViewStub
71        android:id="@+id/sud_layout_progress_stub"
72        android:layout_width="match_parent"
73        android:layout_height="wrap_content"
74        android:layout_marginBottom="@dimen/sud_glif_progress_bar_margin_vertical"
75        android:layout_marginLeft="?attr/sudMarginStart"
76        android:layout_marginRight="?attr/sudMarginStart"
77        android:layout_marginTop="@dimen/sud_glif_progress_bar_margin_vertical"
78        android:inflatedId="@+id/sud_layout_progress"
79        android:layout="@layout/sud_progress_bar" />
80
81    <com.google.android.setupdesign.view.RichTextView
82        android:id="@+id/sud_layout_subtitle"
83        style="?attr/sudGlifDescriptionStyle"
84        android:layout_width="match_parent"
85        android:layout_height="wrap_content"
86        android:visibility="gone" />
87
88    <ProgressBar
89        android:id="@+id/sud_glif_progress_bar"
90        style="?android:attr/progressBarStyleHorizontal"
91        android:layout_width="match_parent"
92        android:layout_height="wrap_content"
93        android:layout_marginLeft="?attr/sudMarginStart"
94        android:layout_marginRight="?attr/sudMarginStart"
95        android:visibility="gone"
96        android:indeterminate="true" />
97
98    <ViewStub
99        android:id="@+id/sud_glif_progress_indicator_stub"
100        android:layout_width="match_parent"
101        android:layout_height="wrap_content"
102        android:layout_marginTop="@dimen/sud_glif_expressive_progress_indicator_margin_vertical"
103        android:layout_marginLeft="?attr/sudMarginStart"
104        android:layout_marginRight="?attr/sudMarginStart"
105        android:paddingBottom="@dimen/sud_glif_expressive_progress_indicator_padding_bottom"
106        android:inflatedId="@+id/sud_layout_progress_indicator"
107        android:layout="@layout/sud_progress_indicator" />
108
109</LinearLayout>
110