1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2009 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<android.support.design.widget.CoordinatorLayout 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:fitsSystemWindows="true" 23 android:orientation="vertical"> 24 25 <android.support.design.widget.AppBarLayout 26 android:layout_width="match_parent" 27 android:layout_height="wrap_content" 28 android:background="@null" 29 app:elevation="0dp"> 30 31 <android.support.v7.widget.Toolbar 32 android:id="@+id/toolbar" 33 android:layout_width="match_parent" 34 android:layout_height="?attr/actionBarSize" 35 app:contentInsetLeft="0dp" 36 app:contentInsetStart="0dp"> 37 38 <android.support.design.widget.TabLayout 39 android:id="@+id/sliding_tabs" 40 android:layout_width="match_parent" 41 android:layout_height="match_parent" 42 app:tabGravity="fill" 43 app:tabIndicatorColor="@android:color/transparent" 44 app:tabMode="fixed" /> 45 46 </android.support.v7.widget.Toolbar> 47 48 </android.support.design.widget.AppBarLayout> 49 50 <com.android.deskclock.widget.RtlViewPager 51 android:id="@+id/desk_clock_pager" 52 android:layout_width="match_parent" 53 android:layout_height="match_parent" 54 app:layout_behavior="@string/appbar_scrolling_view_behavior" /> 55 56 <LinearLayout 57 android:layout_width="match_parent" 58 android:layout_height="wrap_content" 59 android:layout_gravity="bottom" 60 android:baselineAligned="false" 61 android:orientation="horizontal" 62 app:layout_behavior="com.android.deskclock.widget.toast.LinearLayoutWithSnackbarBehavior"> 63 64 <FrameLayout 65 android:layout_width="0dp" 66 android:layout_height="match_parent" 67 android:layout_gravity="start|center_vertical" 68 android:layout_weight="1"> 69 70 <ImageButton 71 android:id="@+id/left_button" 72 android:layout_width="@dimen/design_fab_size_normal" 73 android:layout_height="@dimen/design_fab_size_normal" 74 android:layout_gravity="center" 75 android:contentDescription="@null" 76 android:scaleType="center" /> 77 78 </FrameLayout> 79 80 <FrameLayout 81 android:layout_width="0dp" 82 android:layout_height="wrap_content" 83 android:layout_weight="1"> 84 85 <android.support.design.widget.FloatingActionButton 86 android:id="@+id/fab" 87 android:layout_width="wrap_content" 88 android:layout_height="wrap_content" 89 android:layout_gravity="center" 90 android:layout_margin="@dimen/fab_margin" 91 app:borderWidth="0dp" 92 app:elevation="@dimen/fab_elevation" /> 93 94 </FrameLayout> 95 96 <FrameLayout 97 android:layout_width="0dp" 98 android:layout_height="match_parent" 99 android:layout_gravity="end|center_vertical" 100 android:layout_weight="1"> 101 102 <ImageButton 103 android:id="@+id/right_button" 104 android:layout_width="@dimen/design_fab_size_normal" 105 android:layout_height="@dimen/design_fab_size_normal" 106 android:layout_gravity="center" 107 android:contentDescription="@null" 108 android:scaleType="center" /> 109 110 </FrameLayout> 111 </LinearLayout> 112</android.support.design.widget.CoordinatorLayout>