1<!--
2    Copyright (C) 2020 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<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
17    android:layout_width="match_parent"
18    android:layout_height="match_parent"
19    android:background="?android:attr/colorBackground">
20
21    <View
22        android:id="@+id/gesture_tutorial_ripple_view"
23        android:layout_width="match_parent"
24        android:layout_height="match_parent"
25        android:background="@drawable/gesture_tutorial_ripple"/>
26
27    <View
28        android:id="@+id/gesture_tutorial_fake_task_view"
29        android:layout_width="match_parent"
30        android:layout_height="match_parent"
31        android:background="@color/gesture_tutorial_fake_task_view_color"
32        android:visibility="invisible" />
33
34    <ImageView
35        android:id="@+id/gesture_tutorial_fragment_hand_coaching"
36        android:layout_width="match_parent"
37        android:layout_height="match_parent"
38        android:scaleType="centerCrop"/>
39
40    <ImageButton
41        android:id="@+id/gesture_tutorial_fragment_close_button"
42        android:layout_width="wrap_content"
43        android:layout_height="wrap_content"
44        android:padding="18dp"
45        android:layout_marginTop="30dp"
46        android:layout_marginStart="4dp"
47        android:layout_alignParentStart="true"
48        android:layout_alignParentTop="true"
49        android:background="@android:color/transparent"
50        android:accessibilityTraversalAfter="@id/gesture_tutorial_fragment_titles_container"
51        android:contentDescription="@string/gesture_tutorial_close_button_content_description"
52        android:tint="?android:attr/textColorPrimary"
53        android:src="@drawable/gesture_tutorial_close_button"/>
54
55    <LinearLayout
56        android:id="@+id/gesture_tutorial_fragment_titles_container"
57        android:layout_width="match_parent"
58        android:layout_height="wrap_content"
59        android:layout_marginTop="70dp"
60        android:layout_alignParentTop="true"
61        android:focusable="true"
62        android:gravity="center_horizontal"
63        android:orientation="vertical">
64
65        <TextView
66            android:id="@+id/gesture_tutorial_fragment_title_view"
67            android:layout_width="wrap_content"
68            android:layout_height="wrap_content"
69            android:layout_marginStart="@dimen/gesture_tutorial_title_margin_start_end"
70            android:layout_marginEnd="@dimen/gesture_tutorial_title_margin_start_end"
71            style="@style/TextAppearance.GestureTutorial.Title"/>
72
73        <TextView
74            android:id="@+id/gesture_tutorial_fragment_subtitle_view"
75            android:layout_width="wrap_content"
76            android:layout_height="wrap_content"
77            android:layout_marginTop="10dp"
78            android:layout_marginStart="@dimen/gesture_tutorial_subtitle_margin_start_end"
79            android:layout_marginEnd="@dimen/gesture_tutorial_subtitle_margin_start_end"
80            style="@style/TextAppearance.GestureTutorial.Subtitle"/>
81    </LinearLayout>
82
83    <TextView
84        android:id="@+id/gesture_tutorial_fragment_feedback_view"
85        android:layout_width="wrap_content"
86        android:layout_height="wrap_content"
87        android:layout_marginBottom="10dp"
88        android:layout_centerHorizontal="true"
89        android:layout_above="@id/gesture_tutorial_fragment_action_button"
90        android:layout_marginStart="@dimen/gesture_tutorial_feedback_margin_start_end"
91        android:layout_marginEnd="@dimen/gesture_tutorial_feedback_margin_start_end"
92        style="@style/TextAppearance.GestureTutorial.Feedback"/>
93
94    <!-- android:stateListAnimator="@null" removes shadow and normal on click behavior (increase
95         of elevation and shadow) which is replaced by ripple effect in android:foreground -->
96    <Button
97        android:id="@+id/gesture_tutorial_fragment_action_button"
98        android:layout_width="142dp"
99        android:layout_height="49dp"
100        android:layout_marginEnd="@dimen/gesture_tutorial_button_margin_start_end"
101        android:layout_marginBottom="48dp"
102        android:layout_alignParentEnd="true"
103        android:layout_alignParentBottom="true"
104        android:stateListAnimator="@null"
105        android:background="@drawable/gesture_tutorial_action_button_background"
106        android:foreground="?android:attr/selectableItemBackgroundBorderless"
107        style="@style/TextAppearance.GestureTutorial.ButtonLabel"/>
108
109    <Button
110        android:id="@+id/gesture_tutorial_fragment_action_text_button"
111        android:layout_width="142dp"
112        android:layout_height="49dp"
113        android:layout_marginStart="@dimen/gesture_tutorial_button_margin_start_end"
114        android:layout_marginBottom="48dp"
115        android:layout_alignParentStart="true"
116        android:layout_alignParentBottom="true"
117        android:stateListAnimator="@null"
118        android:background="@null"
119        android:foreground="?android:attr/selectableItemBackgroundBorderless"
120        style="@style/TextAppearance.GestureTutorial.TextButtonLabel"/>
121</RelativeLayout>