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<ScrollView
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    <LinearLayout
24        android:id="@+id/TopLayout"
25        android:layout_width="match_parent"
26        android:layout_height="wrap_content"
27        android:paddingBottom="8dp"
28        android:orientation="vertical">
29
30        <TextView
31            android:layout_width="wrap_content"
32            android:layout_height="wrap_content"
33            android:layout_margin="16dp"
34            android:text="Sample Card #1"/>
35
36        <androidx.cardview.widget.CardView
37            android:layout_width="match_parent"
38            android:layout_height="wrap_content"
39            android:layout_margin="8dp"
40            android:layout_marginBottom="16dp"
41            android:clickable="true"
42            android:focusable="true"
43            android:minHeight="148dp">
44
45            <LinearLayout
46                android:layout_width="match_parent"
47                android:layout_height="wrap_content"
48                android:orientation="vertical">
49
50                <LinearLayout
51                    android:layout_width="match_parent"
52                    android:layout_height="wrap_content"
53                    android:padding="16dp"
54                    android:paddingBottom="8dp">
55
56                    <ImageView
57                        android:layout_width="50dp"
58                        android:layout_height="50dp"
59                        android:layout_marginEnd="8dp"
60                        android:layout_marginRight="8dp"
61                        android:contentDescription="Logo"
62                        android:src="@drawable/icon"/>
63
64                    <LinearLayout
65                        android:layout_width="0dp"
66                        android:layout_height="wrap_content"
67                        android:layout_weight="1.0"
68                        android:layout_marginStart="8dp"
69                        android:layout_marginLeft="8dp"
70                        android:orientation="vertical">
71                        <TextView
72                            android:layout_width="wrap_content"
73                            android:layout_height="wrap_content"
74                            android:textStyle="bold"
75                            android:text="Image Transition"/>
76
77                        <TextView
78                            android:layout_width="wrap_content"
79                            android:layout_height="wrap_content"
80                            android:layout_marginTop="8dp"
81                            android:ellipsize="end"
82                            android:maxLines="1"
83                            android:text="Touch the image to trigger the animation"/>
84                    </LinearLayout>
85                </LinearLayout>
86
87                <com.android.test.hwui.BitmapTransitionView
88                    android:layout_width="match_parent"
89                    android:layout_height="194dp"
90                    android:padding="8dp"/>
91
92            </LinearLayout>
93
94        </androidx.cardview.widget.CardView>
95
96        <TextView
97            android:layout_width="wrap_content"
98            android:layout_height="wrap_content"
99            android:layout_margin="16dp"
100            android:text="Sample Card #2"/>
101
102        <androidx.cardview.widget.CardView
103            android:id="@+id/CardView"
104            android:layout_width="match_parent"
105            android:layout_height="wrap_content"
106            android:layout_margin="8dp"
107            android:layout_marginBottom="16dp"
108            android:clickable="true"
109            android:focusable="true"
110            android:minHeight="148dp">
111
112            <LinearLayout
113                android:layout_width="match_parent"
114                android:layout_height="wrap_content"
115                android:paddingTop="16dp"
116                android:orientation="vertical">
117
118                <LinearLayout
119                    android:layout_width="match_parent"
120                    android:layout_height="wrap_content"
121                    android:padding="16dp"
122                    android:paddingBottom="8dp">
123
124                    <ImageView
125                        android:layout_width="50dp"
126                        android:layout_height="50dp"
127                        android:layout_marginEnd="8dp"
128                        android:layout_marginRight="8dp"
129                        android:contentDescription="Logo"
130                        android:src="@drawable/icon"/>
131
132                    <LinearLayout
133                        android:layout_width="0dp"
134                        android:layout_height="wrap_content"
135                        android:layout_weight="1.0"
136                        android:layout_marginStart="8dp"
137                        android:layout_marginLeft="8dp"
138                        android:orientation="vertical">
139                        <TextView
140                            android:layout_width="wrap_content"
141                            android:layout_height="wrap_content"
142                            android:textStyle="bold"
143                            android:text="View Group Manipulation"/>
144
145                        <TextView
146                            android:layout_width="wrap_content"
147                            android:layout_height="wrap_content"
148                            android:layout_marginTop="8dp"
149                            android:ellipsize="end"
150                            android:maxLines="1"
151                            android:text="Tap the card to trigger the animation"/>
152                    </LinearLayout>
153                </LinearLayout>
154
155                <ImageView
156                    android:layout_width="match_parent"
157                    android:layout_height="194dp"
158                    android:background="@android:color/transparent"
159                    android:src="@drawable/weather_2"/>
160
161                <LinearLayout
162                    android:layout_width="match_parent"
163                    android:layout_height="wrap_content"
164                    android:padding="16dp"
165                    android:paddingBottom="8dp"
166                    android:orientation="vertical">
167
168                    <LinearLayout
169                        android:layout_width="match_parent"
170                        android:layout_height="wrap_content">
171                        <RatingBar
172                            android:layout_width="wrap_content"
173                            android:layout_height="wrap_content"
174                            android:contentDescription="Card Rating"
175                            android:isIndicator="true"
176                            android:numStars="5"
177                            android:rating="4.5"
178
179                            android:stepSize="0.5"/>
180                        <TextView
181                            android:layout_width="wrap_content"
182                            android:layout_height="match_parent"
183                            android:gravity="center_vertical"
184                            android:text="Category 4.5 Storm"/>
185                    </LinearLayout>
186
187                    <TextView
188                        android:layout_width="wrap_content"
189                        android:layout_height="wrap_content"
190                        android:layout_marginTop="8dp"
191                        android:maxLines="3"
192                        android:textIsSelectable="true"
193                        android:text="Lorem ipsum dolor sit amet, nec no nominavi scaevola. Per et
194                        sint sapientem, nobis perpetua salutandi mei te. Quo tamquam probatus
195                        reprehendunt in. Eos esse purto eruditi ea. Enim tation persius ut sea,
196                        eos ad consul populo. Ne eum solet altera. Cibo eligendi et est, electram
197                        theophrastus te vel eu."/>
198
199                </LinearLayout>
200
201            </LinearLayout>
202
203        </androidx.cardview.widget.CardView>
204    </LinearLayout>
205</ScrollView>
206