| <?xml version="1.0" encoding="utf-8"?> |
| <!-- |
| Copyright (c) 2016 Google Inc. |
| |
| 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. |
| --> |
| |
| <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| xmlns:app="http://schemas.android.com/apk/res-auto" |
| android:layout_width="match_parent" |
| android:layout_height="match_parent"> |
| |
| <ImageView |
| android:layout_width="match_parent" |
| android:layout_height="match_parent" |
| android:scaleType="centerInside" |
| android:src="@drawable/placeholder" /> |
| |
| <com.google.android.setupwizard.view.WelcomeVideoView |
| android:id="@+id/background" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:layout_gravity="center" |
| app:suwVideo="@raw/welcome_bg" |
| app:loopStartMs="4300" /> |
| |
| <LinearLayout |
| android:layout_width="match_parent" |
| android:layout_height="match_parent" |
| android:weightSum="1" |
| android:orientation="vertical"> |
| |
| <TextView |
| android:id="@+id/welcome_title" |
| style="@style/WelcomeTitle" |
| android:layout_width="match_parent" |
| android:layout_height="0dp" |
| android:layout_weight=".226" |
| android:gravity="center" |
| android:paddingBottom="8dp" |
| android:text="@string/welcome_message" |
| android:textColor="?android:attr/textColorPrimary" /> |
| |
| <!-- Placeholder view to align rest of the view with the circle in video --> |
| <Space |
| android:layout_width="0dp" |
| android:layout_height="0dp" |
| android:layout_weight=".361" /> |
| |
| <LinearLayout |
| android:layout_width="match_parent" |
| android:layout_height="0dp" |
| android:layout_weight=".412" |
| android:clipChildren="false" |
| android:gravity="center_horizontal" |
| android:orientation="vertical"> |
| |
| <Space |
| android:layout_width="0dp" |
| android:layout_height="0dp" |
| android:layout_weight="1" /> |
| |
| <com.google.android.setupwizard.util.LanguagePicker |
| android:id="@+id/language_picker" |
| style="@style/WelcomeBottomButton" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_marginBottom="@dimen/welcome_language_picker_margin_bottom" |
| android:drawableStart="@drawable/ic_language" /> |
| |
| <com.google.android.setupwizard.util.BlinkButton |
| android:id="@+id/welcome_accessibility" |
| style="@style/WelcomeBottomButton" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:drawableStart="@drawable/ic_accessibility" |
| android:text="@string/welcome_accessibility_button" /> |
| |
| <Space |
| android:layout_width="0dp" |
| android:layout_height="0dp" |
| android:layout_weight="1.3" /> |
| |
| <com.android.setupwizardlib.view.ButtonBarLayout |
| style="@style/SuwGlifButtonBar.Stackable" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content"> |
| |
| <Button |
| android:id="@+id/welcome_emergency_dial" |
| style="@style/SuwGlifButton.Secondary" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:text="@string/emergency_dial" /> |
| |
| <Space |
| android:layout_width="0dp" |
| android:layout_height="0dp" |
| android:layout_weight="1" /> |
| |
| <Button |
| android:id="@+id/start" |
| style="@style/SuwGlifButton.Primary" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:text="@string/welcome_start_button_label" /> |
| |
| </com.android.setupwizardlib.view.ButtonBarLayout> |
| |
| </LinearLayout> |
| |
| </LinearLayout> |
| |
| </FrameLayout> |