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--> 16 17<LinearLayout 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:baselineAligned="false" 23 android:gravity="center" 24 android:orientation="vertical"> 25 26 <androidx.percentlayout.widget.PercentFrameLayout 27 android:layout_width="match_parent" 28 android:layout_height="wrap_content" 29 android:layout_gravity="center"> 30 31 <com.android.deskclock.TimerCircleFrameLayout 32 android:id="@+id/stopwatch_time_wrapper" 33 android:layout_gravity="center" 34 app:layout_aspectRatio="100%" 35 app:layout_heightPercent="@fraction/timer_circle_height_percent" 36 app:layout_widthPercent="@fraction/timer_circle_width_percent"> 37 38 <include layout="@layout/stopwatch_time" /> 39 40 <!-- Sufficient space exists to include the bounding stopwatch circle. --> 41 <com.android.deskclock.stopwatch.StopwatchCircleView 42 android:id="@+id/stopwatch_circle" 43 android:layout_width="match_parent" 44 android:layout_height="match_parent" /> 45 46 </com.android.deskclock.TimerCircleFrameLayout> 47 48 </androidx.percentlayout.widget.PercentFrameLayout> 49 50 <androidx.recyclerview.widget.RecyclerView 51 android:id="@+id/laps_list" 52 android:layout_width="match_parent" 53 android:layout_height="0dp" 54 android:layout_weight="1" 55 android:layout_gravity="center" 56 android:clipToPadding="false" 57 android:paddingBottom="@dimen/fab_height" /> 58 59</LinearLayout>