• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2019 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
17<com.google.android.setupdesign.GlifLayout
18    xmlns:android="http://schemas.android.com/apk/res/android"
19    android:id="@+id/setup_wizard_layout"
20    android:layout_width="match_parent"
21    android:layout_height="match_parent">
22
23    <LinearLayout
24        style="@style/SudContentFrame"
25        android:layout_width="match_parent"
26        android:layout_height="match_parent"
27        android:orientation="vertical">
28
29        <LinearLayout
30            android:layout_width="match_parent"
31            android:layout_height="wrap_content"
32            android:layout_marginTop="@dimen/sud_description_margin_top"
33            android:orientation="horizontal"
34            android:gravity="center_vertical">
35            <ImageView
36                android:layout_width="144dp"
37                android:layout_height="144dp"
38                android:scaleType="centerInside"
39                android:src="@drawable/ic_storage_wizard_internal" />
40            <LinearLayout
41                android:layout_width="0dp"
42                android:layout_height="wrap_content"
43                android:layout_weight="1"
44                android:layout_marginStart="@dimen/sud_glif_margin_sides"
45                android:orientation="vertical">
46                <TextView
47                    android:layout_width="match_parent"
48                    android:layout_height="wrap_content"
49                    android:layout_marginBottom="@dimen/sud_description_margin_bottom"
50                    android:textAppearance="@*android:style/TextAppearance.DeviceDefault.Subhead"
51                    android:text="@string/storage_wizard_init_v2_internal_title" />
52                <TextView
53                    android:layout_width="match_parent"
54                    android:layout_height="wrap_content"
55                    android:layout_marginBottom="@dimen/sud_description_margin_bottom"
56                    android:textColor="?android:attr/textColorSecondary"
57                    android:text="@string/storage_wizard_init_v2_internal_summary" />
58                <Button
59                    android:id="@+id/storage_wizard_init_internal"
60                    style="@style/SudGlifButton.Primary"
61                    android:layout_width="wrap_content"
62                    android:layout_height="wrap_content"
63                    android:text="@string/storage_wizard_init_v2_internal_action"
64                    android:onClick="onNavigateInternal" />
65            </LinearLayout>
66        </LinearLayout>
67
68        <LinearLayout
69            android:layout_width="match_parent"
70            android:layout_height="wrap_content"
71            android:layout_marginTop="@dimen/sud_description_margin_top"
72            android:orientation="horizontal"
73            android:gravity="center_vertical">
74            <View
75                android:layout_width="0dp"
76                android:layout_height="1dp"
77                android:layout_weight="1"
78                android:background="@android:color/black"
79                android:backgroundTint="?android:attr/textColorTertiary" />
80            <TextView
81                android:layout_width="wrap_content"
82                android:layout_height="wrap_content"
83                android:layout_marginStart="8dp"
84                android:layout_marginEnd="8dp"
85                android:text="@string/storage_wizard_init_v2_or"
86                android:textColor="?android:attr/textColorTertiary"
87                android:textAllCaps="true" />
88            <View
89                android:layout_width="0dp"
90                android:layout_height="1dp"
91                android:layout_weight="1"
92                android:background="@android:color/black"
93                android:backgroundTint="?android:attr/textColorTertiary" />
94        </LinearLayout>
95
96        <LinearLayout
97            android:layout_width="match_parent"
98            android:layout_height="wrap_content"
99            android:layout_marginTop="@dimen/sud_description_margin_top"
100            android:orientation="horizontal"
101            android:gravity="center_vertical">
102            <ImageView
103                android:layout_width="144dp"
104                android:layout_height="144dp"
105                android:scaleType="centerInside"
106                android:src="@drawable/ic_storage_wizard_external" />
107            <LinearLayout
108                android:layout_width="0dp"
109                android:layout_height="wrap_content"
110                android:layout_weight="1"
111                android:layout_marginStart="@dimen/sud_glif_margin_sides"
112                android:orientation="vertical">
113                <TextView
114                    android:layout_width="match_parent"
115                    android:layout_height="wrap_content"
116                    android:layout_marginBottom="@dimen/sud_description_margin_bottom"
117                    android:textAppearance="@*android:style/TextAppearance.DeviceDefault.Subhead"
118                    android:text="@string/storage_wizard_init_v2_external_title" />
119                <TextView
120                    android:layout_width="match_parent"
121                    android:layout_height="wrap_content"
122                    android:layout_marginBottom="@dimen/sud_description_margin_bottom"
123                    android:textColor="?android:attr/textColorSecondary"
124                    android:text="@string/storage_wizard_init_v2_external_summary" />
125                <Button
126                    android:id="@+id/storage_wizard_init_external"
127                    style="@style/SudGlifButton.Primary"
128                    android:layout_width="wrap_content"
129                    android:layout_height="wrap_content"
130                    android:text="@string/storage_wizard_init_v2_external_action"
131                    android:onClick="onNavigateExternal" />
132            </LinearLayout>
133        </LinearLayout>
134
135    </LinearLayout>
136
137</com.google.android.setupdesign.GlifLayout>
138