1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 ~ Copyright (C) 2024 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<LinearLayout 18 android:id="@+id/interstitial_page" 19 xmlns:android="http://schemas.android.com/apk/res/android" 20 xmlns:app="http://schemas.android.com/apk/res-auto" 21 android:layout_width="match_parent" 22 android:layout_height="match_parent" 23 android:fitsSystemWindows="true" 24 android:transitionGroup="true" 25 android:orientation="vertical"> 26 27 <Toolbar 28 android:id="@+id/action_bar" 29 style="?android:attr/actionBarStyle" 30 android:layout_width="match_parent" 31 android:layout_height="wrap_content" 32 android:theme="?android:attr/actionBarTheme" 33 android:elevation="0dp" 34 android:background="@android:color/transparent" /> 35 36 <androidx.constraintlayout.widget.ConstraintLayout 37 android:layout_width="match_parent" 38 android:layout_height="match_parent" 39 android:paddingTop="12dp" 40 android:paddingBottom="64dp" 41 android:paddingLeft="24dp" 42 android:paddingRight="24dp" 43 android:orientation="vertical"> 44 45 <!-- image goes here --> 46 <FrameLayout 47 android:id="@+id/image_frame" 48 android:layout_width="match_parent" 49 android:layout_height="0dp" 50 app:layout_constraintBottom_toTopOf="@+id/mode_name_title" 51 app:layout_constraintTop_toTopOf="parent"> 52 53 <ImageView 54 android:id="@+id/image" 55 android:layout_width="match_parent" 56 android:layout_height="match_parent" 57 android:adjustViewBounds="true" 58 android:clickable="false" 59 android:scaleType="fitCenter" 60 android:layout_gravity="center" /> 61 62 </FrameLayout> 63 64 <TextView 65 android:id="@+id/mode_name_title" 66 android:layout_width="match_parent" 67 android:layout_height="wrap_content" 68 android:clickable="false" 69 android:textAppearance="@*android:style/TextAppearance.DeviceDefault.Title" 70 app:layout_constraintBottom_toTopOf="@+id/mode_name_subtitle" 71 android:textSize="36sp" 72 android:paddingVertical="12dp" /> 73 74 <TextView 75 android:id="@+id/mode_name_subtitle" 76 android:layout_width="match_parent" 77 android:layout_height="wrap_content" 78 android:clickable="false" 79 android:text="@string/zen_mode_setup_page_summary" 80 android:textSize="18sp" 81 android:paddingBottom="18dp" 82 android:textAppearance="@*android:style/TextAppearance.DeviceDefault.Body1" 83 app:layout_constraintBottom_toTopOf="@+id/enable_mode_button" /> 84 85 <Button 86 android:id="@+id/enable_mode_button" 87 style="@style/ActionPrimaryButton" 88 android:layout_width="match_parent" 89 android:layout_height="wrap_content" 90 android:paddingVertical="12dp" 91 app:layout_constraintBottom_toBottomOf="parent" 92 app:layout_constraintVertical_bias="1" /> 93 94 </androidx.constraintlayout.widget.ConstraintLayout> 95 96</LinearLayout>