blob: 0f0abc1502cf2a7d072e62872924a61d132eb1b1 [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright (C) 2020 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.
-->
<androidx.constraintlayout.widget.ConstraintLayout
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:id="@+id/device_icon"
android:layout_width="@dimen/icon_size"
android:layout_height="@dimen/icon_size"
android:src="@drawable/ic_smartphone"
android:layout_marginTop="@dimen/instruction_margin_top"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintBottom_toTopOf="@+id/add_associated_device_title"
style="@style/AssociationTopIcon"/>
<androidx.constraintlayout.widget.Guideline
android:id="@+id/start_guideline"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical"
app:layout_constraintGuide_begin="@dimen/content_margin"/>
<TextView
android:id="@+id/add_associated_device_title"
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:layout_marginTop="@dimen/instruction_detail_margin_top"
android:text="@string/add_associated_device_title"
android:gravity="center"
android:textAppearance="@style/AssociationTitle"
app:layout_constraintTop_toBottomOf="@+id/device_icon"
app:layout_constraintStart_toEndOf="@+id/start_guideline"
app:layout_constraintBottom_toTopOf="@+id/add_associated_device_instruction"/>
<TextView
android:id="@+id/add_associated_device_instruction"
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:layout_marginTop="@dimen/instruction_detail_margin_top"
android:text="@string/add_associated_device_instruction"
android:textAppearance="@style/AssociationMessage"
android:gravity="center"
app:layout_constraintTop_toBottomOf="@+id/add_associated_device_title"
app:layout_constraintStart_toEndOf="@+id/start_guideline"
app:layout_constraintEnd_toStartOf="@+id/end_guideline"
app:layout_constraintBottom_toTopOf="@+id/install_app_instruction"/>
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/install_app_instruction"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/instruction_steps_margin_top"
app:layout_constraintTop_toBottomOf="@+id/add_associated_device_instruction"
app:layout_constraintStart_toEndOf="@+id/start_guideline"
app:layout_constraintEnd_toStartOf="@+id/end_guideline"
android:minHeight="@dimen/list_item_height">
<ImageView
android:id="@+id/install_app_icon"
android:layout_width="@dimen/list_item_icon_size"
android:layout_height="@dimen/list_item_icon_size"
android:layout_gravity="center"
android:scaleType="fitXY"
android:src="@drawable/ic_smartphone"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toStartOf="@+id/install_app_icon_end_guideline"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintBottom_toBottomOf="parent"/>
<androidx.constraintlayout.widget.Guideline
android:id="@+id/install_app_icon_end_guideline"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical"
app:layout_constraintGuide_begin="@dimen/list_item_icon_container_size"/>
<TextView
android:id="@+id/install_app_text"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/list_item_text_margin_start"
android:layout_marginEnd="@dimen/list_item_text_margin_end"
android:layout_marginBottom="@dimen/list_item_content_margin_bottom"
android:layout_marginTop="@dimen/list_item_content_margin_top"
android:text="@string/associated_device_install_app"
android:textAppearance="@style/AssociationInstruction"
app:layout_constraintStart_toEndOf="@+id/install_app_icon_end_guideline"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintBottom_toBottomOf="parent"/>
</androidx.constraintlayout.widget.ConstraintLayout>
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/open_app_instruction"
android:layout_width="0dp"
android:layout_height="wrap_content"
app:layout_constraintStart_toEndOf="@+id/start_guideline"
app:layout_constraintEnd_toStartOf="@+id/end_guideline"
app:layout_constraintTop_toBottomOf="@+id/install_app_instruction"
android:minHeight="@dimen/list_item_height">
<ImageView
android:id="@+id/open_app_icon"
android:layout_width="@dimen/list_item_icon_size"
android:layout_height="@dimen/list_item_icon_size"
android:layout_gravity="center"
android:scaleType="fitXY"
android:src="@drawable/ic_directions_car"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toStartOf="@+id/open_app_icon_end_guideline"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintBottom_toBottomOf="parent"/>
<androidx.constraintlayout.widget.Guideline
android:id="@+id/open_app_icon_end_guideline"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical"
app:layout_constraintGuide_begin="@dimen/list_item_icon_container_size"/>
<TextView
android:id="@+id/associated_device_follow_instructions"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/list_item_text_margin_start"
android:layout_marginEnd="@dimen/list_item_text_margin_end"
android:layout_marginBottom="@dimen/list_item_content_margin_bottom"
android:layout_marginTop="@dimen/list_item_content_margin_top"
android:text="@string/associated_device_open_app"
android:textAppearance="@style/AssociationInstruction"
app:layout_constraintStart_toEndOf="@+id/open_app_icon_end_guideline"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintBottom_toBottomOf="parent"/>
</androidx.constraintlayout.widget.ConstraintLayout>
<androidx.constraintlayout.widget.Guideline
android:id="@+id/end_guideline"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical"
app:layout_constraintGuide_end="@dimen/content_margin"/>
</androidx.constraintlayout.widget.ConstraintLayout>