aboutsummaryrefslogtreecommitdiff
path: root/common/res_leanback/layout/lb_onboarding_fragment.xml
blob: 20489ed005e19b259bcc29fb8ffb0d9722f21e31 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
<?xml version="1.0" encoding="utf-8"?>
<!--
  ~ Copyright (C) 2015 The Android Open Source Project
  ~
  ~ Licensed under the Apache License, Version 2.0 (the "License");
  ~ you may not use this file except in compliance with the License.
  ~ You may obtain a copy of the License at
  ~
  ~      http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing, software
  ~ distributed under the License is distributed on an "AS IS" BASIS,
  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  ~ See the License for the specific language governing permissions and
  ~ limitations under the License.
  -->

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/onboarding_fragment_root"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:clipChildren="false"
    android:clipToPadding="false">

    <FrameLayout
        android:id="@+id/background_container"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:visibility="gone" />

    <LinearLayout
        android:id="@+id/page_container"
        android:layout_width="@dimen/lb_onboarding_content_width"
        android:layout_height="@dimen/lb_onboarding_header_height"
        android:layout_alignParentTop="true"
        android:layout_centerHorizontal="true"
        android:layout_marginTop="@dimen/lb_onboarding_header_margin_top"
        android:clipChildren="false"
        android:clipToPadding="false"
        android:orientation="vertical"
        android:visibility="gone">
        <TextView
            android:id="@+id/title"
            android:layout_width="match_parent"
            android:layout_height="0dp"
            android:layout_weight="0.5"
            android:layout_marginBottom="3dp"
            android:fontFamily="sans-serif-light"
            android:gravity="center"
            android:textColor="#EEEEEE"
            android:textSize="34sp"
            android:lineSpacingExtra="14sp"/>
        <TextView
            android:id="@+id/description"
            android:layout_width="match_parent"
            android:layout_height="0dp"
            android:layout_weight="0.5"
            android:layout_marginTop="3dp"
            android:fontFamily="sans-serif-light"
            android:gravity="center"
            android:textColor="#B3EEEEEE"
            android:textSize="14sp"
            android:lineSpacingExtra="10sp" />
    </LinearLayout>

    <FrameLayout
        android:id="@+id/content_container"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_above="@+id/page_indicator"
        android:layout_below="@id/page_container"
        android:layout_centerHorizontal="true"
        android:visibility="gone" />

    <com.android.tv.common.ui.setup.leanback.PagingIndicator
        android:id="@id/page_indicator"
        android:layout_width="@dimen/lb_onboarding_content_width"
        android:layout_height="@dimen/lb_onboarding_navigation_height"
        android:layout_centerHorizontal="true"
        android:layout_alignParentBottom="true"
        android:layout_marginBottom="58dp"
        android:focusable="true"
        android:contentDescription="@string/lb_onboarding_accessibility_next"
        android:visibility="gone" />

    <Button
        android:id="@+id/button_start"
        android:layout_width="wrap_content"
        android:layout_height="36dp"
        android:layout_centerHorizontal="true"
        android:layout_alignParentBottom="true"
        android:layout_marginBottom="62dp"
        android:alpha="0.0"
        android:background="@drawable/lb_onboarding_start_button_background"
        android:elevation="1.5dp"
        android:fontFamily="sans-serif"
        android:gravity="center_vertical"
        android:paddingEnd="24dp"
        android:paddingStart="24dp"
        android:stateListAnimator="@null"
        android:text="@string/lb_onboarding_get_started"
        android:textAllCaps="true"
        android:textColor="#014269"
        android:textSize="16sp"
        android:visibility="gone"/>

    <FrameLayout
        android:id="@+id/foreground_container"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:visibility="gone" />

    <ImageView
        android:id="@+id/logo"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_centerInParent="true"
        android:contentDescription="@null" />

</RelativeLayout>