Isaac Katzenelson | 65d7dfb | 2012-08-28 16:58:32 -0700 | [diff] [blame] | 1 | <?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 Lemieux | ce6b880 | 2016-05-19 13:26:40 -0700 | [diff] [blame] | 16 | |
Michael W | 1a55360 | 2023-01-01 17:03:03 +0100 | [diff] [blame] | 17 | <androidx.constraintlayout.widget.ConstraintLayout |
James Lemieux | 24a54fc | 2015-09-18 16:45:45 -0700 | [diff] [blame] | 18 | xmlns:android="http://schemas.android.com/apk/res/android" |
James Lemieux | ce6b880 | 2016-05-19 13:26:40 -0700 | [diff] [blame] | 19 | xmlns:app="http://schemas.android.com/apk/res-auto" |
Michael W | 1a55360 | 2023-01-01 17:03:03 +0100 | [diff] [blame] | 20 | xmlns:tools="http://schemas.android.com/tools" |
Isaac Katzenelson | 65d7dfb | 2012-08-28 16:58:32 -0700 | [diff] [blame] | 21 | android:layout_width="match_parent" |
| 22 | android:layout_height="match_parent" |
James Lemieux | ce6b880 | 2016-05-19 13:26:40 -0700 | [diff] [blame] | 23 | android:baselineAligned="false" |
Sean Stout | d4d902b | 2016-10-28 13:20:00 -0700 | [diff] [blame] | 24 | android:gravity="center" |
James Lemieux | ce6b880 | 2016-05-19 13:26:40 -0700 | [diff] [blame] | 25 | android:orientation="vertical"> |
Isaac Katzenelson | 65d7dfb | 2012-08-28 16:58:32 -0700 | [diff] [blame] | 26 | |
Michael W | 1a55360 | 2023-01-01 17:03:03 +0100 | [diff] [blame] | 27 | <androidx.constraintlayout.widget.Guideline |
| 28 | android:id="@+id/left_guideline" |
| 29 | android:layout_width="wrap_content" |
James Lemieux | ce6b880 | 2016-05-19 13:26:40 -0700 | [diff] [blame] | 30 | android:layout_height="wrap_content" |
Michael W | 1a55360 | 2023-01-01 17:03:03 +0100 | [diff] [blame] | 31 | android:orientation="vertical" |
| 32 | app:layout_constraintGuide_percent=".1" /> |
Isaac Katzenelson | b940271 | 2012-09-10 15:11:41 -0700 | [diff] [blame] | 33 | |
Michael W | 1a55360 | 2023-01-01 17:03:03 +0100 | [diff] [blame] | 34 | <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 W | 13fec09 | 2023-01-05 22:22:19 +0100 | [diff] [blame] | 50 | app:layout_constraintHeight_max="@dimen/max_stopwatch_circle_size"> |
Michael W | 1a55360 | 2023-01-01 17:03:03 +0100 | [diff] [blame] | 51 | |
| 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 W | 23d7064 | 2022-02-23 18:26:53 +0100 | [diff] [blame] | 64 | android:layout_width="0dp" |
Michael W | 1a55360 | 2023-01-01 17:03:03 +0100 | [diff] [blame] | 65 | 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 Lemieux | 24a54fc | 2015-09-18 16:45:45 -0700 | [diff] [blame] | 70 | |
Michael W | 1a55360 | 2023-01-01 17:03:03 +0100 | [diff] [blame] | 71 | </androidx.constraintlayout.widget.ConstraintLayout> |
Robyn Coultas | 491d478 | 2013-09-09 14:35:01 -0700 | [diff] [blame] | 72 | |
Aurimas Liutikas | 7082447 | 2018-03-28 06:56:55 -0700 | [diff] [blame] | 73 | <androidx.recyclerview.widget.RecyclerView |
Itzhak Katzenelson | 48d79ef | 2012-09-10 09:20:09 -0700 | [diff] [blame] | 74 | android:id="@+id/laps_list" |
Michael W | 1a55360 | 2023-01-01 17:03:03 +0100 | [diff] [blame] | 75 | android:layout_width="0dp" |
James Lemieux | 24a54fc | 2015-09-18 16:45:45 -0700 | [diff] [blame] | 76 | android:layout_height="0dp" |
James Lemieux | ce6b880 | 2016-05-19 13:26:40 -0700 | [diff] [blame] | 77 | android:clipToPadding="false" |
Michael W | 1a55360 | 2023-01-01 17:03:03 +0100 | [diff] [blame] | 78 | 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"/> |
rachelzhang | 5520461 | 2014-08-05 10:07:58 -0700 | [diff] [blame] | 84 | |
Michael W | 1a55360 | 2023-01-01 17:03:03 +0100 | [diff] [blame] | 85 | </androidx.constraintlayout.widget.ConstraintLayout> |