• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3  ~ Copyright (C) 2023 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<androidx.constraintlayout.widget.ConstraintLayout
19    xmlns:android="http://schemas.android.com/apk/res/android"
20    xmlns:app="http://schemas.android.com/apk/res-auto"
21    android:layout_width="match_parent"
22    android:layout_height="match_parent"
23    android:layout_margin="16dp">
24    <androidx.constraintlayout.widget.ConstraintLayout
25        android:id="@+id/header"
26        android:layout_width="0dp"
27        android:layout_height="wrap_content"
28        app:layout_constraintTop_toTopOf="parent"
29        app:layout_constraintBottom_toTopOf="@id/content"
30        app:layout_constraintLeft_toLeftOf="parent"
31        app:layout_constraintRight_toRightOf="parent">
32        <ImageView
33            android:id="@+id/header_icon"
34            android:layout_width="40dp"
35            android:layout_height="40dp"
36            android:scaleType="fitCenter"
37            android:contentDescription="@string/header_icon_content_description"
38            app:layout_constraintStart_toStartOf="parent"
39            app:layout_constraintTop_toTopOf="parent"/>
40        <TextView
41            android:id="@+id/header_text"
42            android:layout_width="wrap_content"
43            android:layout_height="wrap_content"
44            android:layout_marginTop="24dp"
45            android:textSize="32sp"
46            app:layout_constraintStart_toStartOf="parent"
47            app:layout_constraintTop_toBottomOf="@+id/header_icon"/>
48        <TextView
49            android:id="@+id/subheader_text"
50            android:layout_width="wrap_content"
51            android:layout_height="wrap_content"
52            android:layout_marginTop="24dp"
53            android:textSize="16sp"
54            app:layout_constraintStart_toStartOf="parent"
55            app:layout_constraintTop_toBottomOf="@+id/header_text" />
56    </androidx.constraintlayout.widget.ConstraintLayout>
57    <androidx.constraintlayout.widget.ConstraintLayout
58        android:id="@+id/content"
59        android:layout_width="0dp"
60        android:layout_height="0dp"
61        app:layout_constraintTop_toBottomOf="@id/header"
62        app:layout_constraintBottom_toTopOf="@id/bottom"
63        app:layout_constraintLeft_toLeftOf="parent"
64        app:layout_constraintRight_toRightOf="parent">
65        <androidx.recyclerview.widget.RecyclerView
66            android:id="@+id/recyclerview_provision_info"
67            android:layout_width="0dp"
68            android:layout_height="match_parent"
69            android:layout_marginTop="16dp"
70            app:layoutManager="LinearLayoutManager"
71            app:layout_constraintBottom_toBottomOf="parent"
72            app:layout_constraintStart_toStartOf="parent"
73            app:layout_constraintEnd_toEndOf="parent"
74            app:layout_constraintTop_toBottomOf="parent"/>
75    </androidx.constraintlayout.widget.ConstraintLayout>
76    <androidx.constraintlayout.widget.ConstraintLayout
77        android:id="@+id/bottom"
78        android:layout_width="0dp"
79        android:layout_height="wrap_content"
80        app:layout_constraintTop_toBottomOf="@id/content"
81        app:layout_constraintBottom_toBottomOf="parent"
82        app:layout_constraintLeft_toLeftOf="parent"
83        app:layout_constraintRight_toRightOf="parent">
84        <Button
85            android:id="@+id/button_ok"
86            android:layout_width="wrap_content"
87            android:layout_height="wrap_content"
88            android:text="@string/ok"
89            app:layout_constraintBottom_toBottomOf="parent"
90            app:layout_constraintEnd_toEndOf="parent"/>
91    </androidx.constraintlayout.widget.ConstraintLayout>
92</androidx.constraintlayout.widget.ConstraintLayout>
93