• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3     Copyright (C) 2020 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<androidx.constraintlayout.widget.ConstraintLayout
18    xmlns:android="http://schemas.android.com/apk/res/android"
19    xmlns:app="http://schemas.android.com/apk/res-auto"
20    android:layout_width="match_parent"
21    android:layout_height="match_parent"
22    android:orientation="vertical">
23
24    <androidx.constraintlayout.widget.ConstraintLayout
25        android:id="@+id/app_row_0"
26        android:layout_width="match_parent"
27        android:layout_height="wrap_content"
28        android:orientation="horizontal"
29        app:layout_constraintStart_toStartOf="parent"
30        app:layout_constraintEnd_toEndOf="parent"
31        app:layout_constraintTop_toTopOf="parent"
32        app:layout_constraintBottom_toTopOf="@id/app_row_1">
33
34        <LinearLayout
35            android:id="@+id/app_item_0"
36            android:layout_width="@dimen/preview_theme_app_icon_size"
37            android:layout_height="wrap_content"
38            android:gravity="center_horizontal"
39            android:orientation="vertical"
40            android:clipChildren="false"
41            app:layout_constraintStart_toStartOf="parent"
42            app:layout_constraintEnd_toStartOf="@id/app_item_1"
43            app:layout_constraintTop_toTopOf="parent"
44            app:layout_constraintBottom_toBottomOf="parent">
45            <ImageView
46                android:id="@+id/shape_preview_icon_0"
47                android:layout_width="@dimen/preview_theme_app_icon_size"
48                android:layout_height="@dimen/preview_theme_app_icon_size"
49                android:elevation="4dp"/>
50            <TextView
51                android:id="@+id/shape_preview_icon_app_name_0"
52                android:layout_width="wrap_content"
53                android:layout_height="wrap_content"
54                android:layout_marginTop="@dimen/preview_theme_app_icon_shape_text_margin_top"
55                android:textSize="@dimen/preview_theme_app_icon_shape_text_size"
56                android:lineHeight="20dp"
57                android:singleLine="true"/>
58        </LinearLayout>
59
60        <LinearLayout
61            android:id="@+id/app_item_1"
62            android:layout_width="@dimen/preview_theme_app_icon_size"
63            android:layout_height="wrap_content"
64            android:gravity="center_horizontal"
65            android:orientation="vertical"
66            android:clipChildren="false"
67            app:layout_constraintStart_toEndOf="@id/app_item_0"
68            app:layout_constraintEnd_toEndOf="parent"
69            app:layout_constraintTop_toTopOf="parent"
70            app:layout_constraintBottom_toBottomOf="parent">
71            <ImageView
72                android:id="@+id/shape_preview_icon_1"
73                android:layout_width="@dimen/preview_theme_app_icon_size"
74                android:layout_height="@dimen/preview_theme_app_icon_size"
75                android:elevation="4dp"/>
76            <TextView
77                android:id="@+id/shape_preview_icon_app_name_1"
78                android:layout_width="wrap_content"
79                android:layout_height="wrap_content"
80                android:layout_marginTop="@dimen/preview_theme_app_icon_shape_text_margin_top"
81                android:textSize="@dimen/preview_theme_app_icon_shape_text_size"
82                android:lineHeight="20dp"
83                android:singleLine="true"/>
84        </LinearLayout>
85
86    </androidx.constraintlayout.widget.ConstraintLayout>
87
88    <androidx.constraintlayout.widget.ConstraintLayout
89        android:id="@+id/app_row_1"
90        android:layout_width="match_parent"
91        android:layout_height="wrap_content"
92        android:orientation="horizontal"
93        app:layout_constraintStart_toStartOf="parent"
94        app:layout_constraintEnd_toEndOf="parent"
95        app:layout_constraintTop_toBottomOf="@id/app_row_0"
96        app:layout_constraintBottom_toBottomOf="parent">
97        <LinearLayout
98            android:id="@+id/app_item_2"
99            android:layout_width="@dimen/preview_theme_app_icon_size"
100            android:layout_height="wrap_content"
101            android:gravity="center_horizontal"
102            android:orientation="vertical"
103            android:clipChildren="false"
104            app:layout_constraintStart_toStartOf="parent"
105            app:layout_constraintEnd_toStartOf="@id/app_item_3"
106            app:layout_constraintTop_toTopOf="parent"
107            app:layout_constraintBottom_toBottomOf="parent">
108            <ImageView
109                android:id="@+id/shape_preview_icon_2"
110                android:layout_width="@dimen/preview_theme_app_icon_size"
111                android:layout_height="@dimen/preview_theme_app_icon_size"
112                android:elevation="4dp"/>
113            <TextView
114                android:id="@+id/shape_preview_icon_app_name_2"
115                android:layout_width="wrap_content"
116                android:layout_height="wrap_content"
117                android:layout_marginTop="@dimen/preview_theme_app_icon_shape_text_margin_top"
118                android:textSize="@dimen/preview_theme_app_icon_shape_text_size"
119                android:lineHeight="20dp"
120                android:singleLine="true"/>
121        </LinearLayout>
122
123        <LinearLayout
124            android:id="@+id/app_item_3"
125            android:layout_width="@dimen/preview_theme_app_icon_size"
126            android:layout_height="wrap_content"
127            android:gravity="center_horizontal"
128            android:orientation="vertical"
129            android:clipChildren="false"
130            app:layout_constraintStart_toEndOf="@id/app_item_2"
131            app:layout_constraintEnd_toEndOf="parent"
132            app:layout_constraintTop_toTopOf="parent"
133            app:layout_constraintBottom_toBottomOf="parent">
134            <ImageView
135                android:id="@+id/shape_preview_icon_3"
136                android:layout_width="@dimen/preview_theme_app_icon_size"
137                android:layout_height="@dimen/preview_theme_app_icon_size"
138                android:elevation="4dp"/>
139            <TextView
140                android:id="@+id/shape_preview_icon_app_name_3"
141                android:layout_width="wrap_content"
142                android:layout_height="wrap_content"
143                android:layout_marginTop="@dimen/preview_theme_app_icon_shape_text_margin_top"
144                android:textSize="@dimen/preview_theme_app_icon_shape_text_size"
145                android:lineHeight="20dp"
146                android:singleLine="true"/>
147        </LinearLayout>
148    </androidx.constraintlayout.widget.ConstraintLayout>
149</androidx.constraintlayout.widget.ConstraintLayout>
150