1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 Copyright (C) 2016 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<androidx.coordinatorlayout.widget.CoordinatorLayout 19 xmlns:android="http://schemas.android.com/apk/res/android" 20 xmlns:app="http://schemas.android.com/apk/res-auto" 21 xmlns:tools="http://schemas.android.com/tools" 22 android:id="@+id/content" 23 android:layout_width="match_parent" 24 android:layout_height="match_parent" 25 android:fitsSystemWindows="true" 26 app:statusBarBackground="@null"> 27 28 <com.google.android.material.appbar.AppBarLayout 29 android:layout_width="match_parent" 30 android:layout_height="wrap_content" 31 android:background="@null" 32 app:elevation="0dp"> 33 34 <androidx.appcompat.widget.Toolbar 35 android:id="@+id/toolbar" 36 android:layout_width="match_parent" 37 android:layout_height="wrap_content" 38 app:contentInsetStart="0dp" 39 tools:ignore="RtlSymmetry"> 40 41 <com.google.android.material.tabs.TabLayout 42 android:id="@+id/tabs" 43 android:layout_width="match_parent" 44 android:layout_height="match_parent" 45 app:tabGravity="fill" 46 app:tabIndicatorColor="@android:color/transparent" 47 app:tabMaxWidth="0dp" 48 app:tabMode="fixed" 49 app:tabPaddingEnd="0dp" 50 app:tabPaddingStart="0dp" /> 51 52 </androidx.appcompat.widget.Toolbar> 53 54 <View 55 android:id="@+id/tab_hairline" 56 android:layout_width="match_parent" 57 android:layout_height="@dimen/hairline_height" 58 android:layout_gravity="bottom" 59 android:background="@color/hairline" 60 android:importantForAccessibility="no" /> 61 62 </com.google.android.material.appbar.AppBarLayout> 63 64 <FrameLayout 65 android:layout_width="match_parent" 66 android:layout_height="match_parent" 67 app:layout_behavior="@string/appbar_scrolling_view_behavior"> 68 69 <androidx.viewpager.widget.ViewPager 70 android:id="@+id/desk_clock_pager" 71 android:layout_width="match_parent" 72 android:layout_height="match_parent" 73 android:importantForAccessibility="no" 74 android:saveEnabled="false" /> 75 76 <include layout="@layout/drop_shadow" /> 77 78 </FrameLayout> 79 80 <LinearLayout 81 android:layout_width="match_parent" 82 android:layout_height="wrap_content" 83 android:layout_gravity="bottom" 84 android:baselineAligned="false" 85 android:orientation="horizontal" 86 app:layout_behavior="com.android.deskclock.widget.toast.SnackbarSlidingBehavior"> 87 88 <FrameLayout 89 android:layout_width="0dp" 90 android:layout_height="match_parent" 91 android:layout_gravity="start|center_vertical" 92 android:layout_weight="1"> 93 94 <Button 95 android:id="@+id/left_button" 96 style="?attr/borderlessButtonStyle" 97 android:layout_width="wrap_content" 98 android:layout_height="wrap_content" 99 android:layout_gravity="center" 100 android:scaleType="centerInside" /> 101 102 </FrameLayout> 103 104 <com.google.android.material.floatingactionbutton.FloatingActionButton 105 android:id="@+id/fab" 106 android:layout_width="wrap_content" 107 android:layout_height="wrap_content" 108 android:layout_gravity="center" 109 android:layout_margin="@dimen/fab_margin" 110 app:borderWidth="0dp" 111 app:elevation="@dimen/fab_elevation" /> 112 113 <FrameLayout 114 android:layout_width="0dp" 115 android:layout_height="match_parent" 116 android:layout_gravity="end|center_vertical" 117 android:layout_weight="1"> 118 119 <Button 120 android:id="@+id/right_button" 121 style="?attr/borderlessButtonStyle" 122 android:layout_width="wrap_content" 123 android:layout_height="wrap_content" 124 android:layout_gravity="center" 125 android:scaleType="centerInside" /> 126 127 </FrameLayout> 128 129 </LinearLayout> 130 131</androidx.coordinatorlayout.widget.CoordinatorLayout> 132