blob: f5d81695cec061ada320815df916ad47c7bd3783 [file] [log] [blame]
Isaac Katzenelson65d7dfb2012-08-28 16:58:32 -07001<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2012 The Android Open Source Project
3
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
7
8 http://www.apache.org/licenses/LICENSE-2.0
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
15-->
James Lemieuxce6b8802016-05-19 13:26:40 -070016
Michael W1a553602023-01-01 17:03:03 +010017<androidx.constraintlayout.widget.ConstraintLayout
James Lemieux24a54fc2015-09-18 16:45:45 -070018 xmlns:android="http://schemas.android.com/apk/res/android"
James Lemieuxce6b8802016-05-19 13:26:40 -070019 xmlns:app="http://schemas.android.com/apk/res-auto"
Michael W1a553602023-01-01 17:03:03 +010020 xmlns:tools="http://schemas.android.com/tools"
Isaac Katzenelson65d7dfb2012-08-28 16:58:32 -070021 android:layout_width="match_parent"
22 android:layout_height="match_parent"
James Lemieuxce6b8802016-05-19 13:26:40 -070023 android:baselineAligned="false"
Sean Stoutd4d902b2016-10-28 13:20:00 -070024 android:gravity="center"
James Lemieuxce6b8802016-05-19 13:26:40 -070025 android:orientation="vertical">
Isaac Katzenelson65d7dfb2012-08-28 16:58:32 -070026
Michael W1a553602023-01-01 17:03:03 +010027 <androidx.constraintlayout.widget.Guideline
28 android:id="@+id/left_guideline"
29 android:layout_width="wrap_content"
James Lemieuxce6b8802016-05-19 13:26:40 -070030 android:layout_height="wrap_content"
Michael W1a553602023-01-01 17:03:03 +010031 android:orientation="vertical"
32 app:layout_constraintGuide_percent=".1" />
Isaac Katzenelsonb9402712012-09-10 15:11:41 -070033
Michael W1a553602023-01-01 17:03:03 +010034 <androidx.constraintlayout.widget.Guideline
35 android:id="@+id/right_guideline"
36 android:layout_width="wrap_content"
37 android:layout_height="wrap_content"
38 android:orientation="vertical"
39 app:layout_constraintGuide_percent=".9" />
40
41 <androidx.constraintlayout.widget.ConstraintLayout
42 android:id="@+id/stopwatch_time_wrapper"
43 android:layout_width="0dp"
44 android:layout_height="0dp"
45 app:layout_constraintTop_toTopOf="parent"
46 app:layout_constraintBottom_toTopOf="@id/laps_list"
47 app:layout_constraintStart_toStartOf="@id/left_guideline"
48 app:layout_constraintEnd_toStartOf="@id/right_guideline"
49 app:layout_constraintDimensionRatio="1:1"
Michael W13fec092023-01-05 22:22:19 +010050 app:layout_constraintHeight_max="@dimen/max_stopwatch_circle_size">
Michael W1a553602023-01-01 17:03:03 +010051
52 <!-- Sufficient space exists to include the bounding stopwatch circle. -->
53 <include
54 layout="@layout/stopwatch_time"
55 android:layout_width="wrap_content"
56 android:layout_height="wrap_content"
57 app:layout_constraintBottom_toBottomOf="parent"
58 app:layout_constraintEnd_toEndOf="parent"
59 app:layout_constraintStart_toStartOf="parent"
60 app:layout_constraintTop_toTopOf="parent" />
61
62 <com.android.deskclock.stopwatch.StopwatchCircleView
63 android:id="@+id/stopwatch_circle"
Michael W23d70642022-02-23 18:26:53 +010064 android:layout_width="0dp"
Michael W1a553602023-01-01 17:03:03 +010065 android:layout_height="0dp"
66 app:layout_constraintBottom_toBottomOf="parent"
67 app:layout_constraintLeft_toLeftOf="parent"
68 app:layout_constraintRight_toRightOf="parent"
69 app:layout_constraintTop_toTopOf="parent" />
James Lemieux24a54fc2015-09-18 16:45:45 -070070
Michael W1a553602023-01-01 17:03:03 +010071 </androidx.constraintlayout.widget.ConstraintLayout>
Robyn Coultas491d4782013-09-09 14:35:01 -070072
Aurimas Liutikas70824472018-03-28 06:56:55 -070073 <androidx.recyclerview.widget.RecyclerView
Itzhak Katzenelson48d79ef2012-09-10 09:20:09 -070074 android:id="@+id/laps_list"
Michael W1a553602023-01-01 17:03:03 +010075 android:layout_width="0dp"
James Lemieux24a54fc2015-09-18 16:45:45 -070076 android:layout_height="0dp"
James Lemieuxce6b8802016-05-19 13:26:40 -070077 android:clipToPadding="false"
Michael W1a553602023-01-01 17:03:03 +010078 android:paddingBottom="@dimen/fab_container_height"
79 app:layout_constraintTop_toBottomOf="@id/stopwatch_time_wrapper"
80 app:layout_constraintBottom_toBottomOf="parent"
81 app:layout_constraintStart_toStartOf="parent"
82 app:layout_constraintEnd_toEndOf="parent"
83 tools:visibility="visible"/>
rachelzhang55204612014-08-05 10:07:58 -070084
Michael W1a553602023-01-01 17:03:03 +010085</androidx.constraintlayout.widget.ConstraintLayout>