| <?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> |