• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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    <FrameLayout
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        style="?attr/doneButtonContainerStyle"
49        android:transitionGroup="true"
50        android:transitionName="buttonDoneTransition">
51        <TextView
52            android:id="@+id/button_done"
53            android:layout_width="match_parent"
54            android:layout_height="45dp"
55            android:layout_marginStart="24dp"
56            android:layout_marginEnd="40dp"
57            android:layout_marginTop="190dp"
58            android:elevation="0dp"
59            android:focusable="true"
60            android:fontFamily="sans-serif-condensed"
61            android:paddingEnd="12dp"
62            android:paddingStart="12dp"
63            android:background="@drawable/setup_action_button_done"
64            android:gravity="center_vertical|start"
65            android:text="@string/action_text_done"
66            android:textColor="#EEEEEE"
67            android:textSize="14sp" />
68    </FrameLayout>
69</FrameLayout>
70