1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 ~ Copyright (C) 2015 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<!-- Need to disable clipping for the shared element transition. --> 19<FrameLayout 20 xmlns:android="http://schemas.android.com/apk/res/android" 21 android:layout_width="match_parent" 22 android:layout_height="match_parent" 23 android:clipChildren="false" 24 android:clipToPadding="false" 25 android:orientation="horizontal"> 26 <View 27 android:id="@+id/setup_common_guidance_background" 28 android:layout_width="match_parent" 29 android:layout_height="match_parent" 30 android:layout_marginStart="@dimen/setup_common_guidance_background_margin_start" 31 android:background="?attr/setupCommonGuidanceBackground" /> 32 <!-- Guided step fragment container must be at the left of the done button at least by 1 pixel 33 for the focus navigation. If they overlap, the focus doesn't move from the button to the 34 fragment container.--> 35 <FrameLayout 36 android:id="@+id/guided_step_fragment_container" 37 android:layout_width="match_parent" 38 android:layout_height="match_parent" 39 android:layout_marginEnd="1dp" 40 android:clipChildren="false" 41 android:clipToPadding="false" /> 42 <!-- TODO: Use button action list in GuidedStepFragment --> 43 <LinearLayout 44 android:id="@+id/done_button_container" 45 android:layout_width="@dimen/setup_done_button_container_width" 46 android:layout_height="match_parent" 47 android:layout_gravity="end" 48 android:orientation="vertical" 49 android:paddingTop="190dp" 50 style="?attr/doneButtonContainerStyle" 51 android:transitionGroup="true" 52 android:transitionName="buttonDoneTransition"> 53 <TextView 54 android:id="@+id/button_done" 55 android:layout_width="match_parent" 56 android:layout_height="45dp" 57 android:layout_marginStart="24dp" 58 android:layout_marginEnd="40dp" 59 android:elevation="0dp" 60 android:focusable="true" 61 android:fontFamily="sans-serif-condensed" 62 android:paddingEnd="12dp" 63 android:paddingStart="12dp" 64 android:background="@drawable/setup_action_button_done" 65 android:gravity="center_vertical|start" 66 android:text="@string/action_text_done" 67 android:textColor="#EEEEEE" 68 android:textSize="14sp" /> 69 <TextView 70 android:id="@+id/button_skip" 71 android:layout_width="match_parent" 72 android:layout_height="45dp" 73 android:layout_marginStart="24dp" 74 android:layout_marginEnd="40dp" 75 android:layout_marginTop="8dp" 76 android:elevation="0dp" 77 android:focusable="true" 78 android:fontFamily="sans-serif-condensed" 79 android:paddingEnd="12dp" 80 android:paddingStart="12dp" 81 android:background="@drawable/setup_action_button_done" 82 android:gravity="center_vertical|start" 83 android:visibility="gone" 84 android:text="@string/action_text_skip" 85 android:textColor="#EEEEEE" 86 android:textSize="14sp" /> 87 </LinearLayout> 88</FrameLayout> 89