1<?xml version="1.0" encoding="utf-8"?>
2<!--
3     Copyright (C) 2011 The Android Open Source Project
4
5     Licensed under the Apache License, Version 2.0 (the "License");
6     you may not use this file except in compliance with the License.
7     You may obtain a copy of the License at
8
9          http://www.apache.org/licenses/LICENSE-2.0
10
11     Unless required by applicable law or agreed to in writing, software
12     distributed under the License is distributed on an "AS IS" BASIS,
13     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14     See the License for the specific language governing permissions and
15     limitations under the License.
16-->
17<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
18    xmlns:launcher="http://schemas.android.com/apk/res-auto"
19    android:id="@+id/migration_cling"
20    android:layout_width="match_parent"
21    android:layout_height="match_parent"
22    launcher:layout_ignoreInsets="true"
23    android:background="#FF009688" >
24
25    <RelativeLayout
26        android:layout_width="match_parent"
27        android:layout_height="wrap_content"
28        android:layout_gravity="center_vertical" >
29
30        <ImageView
31            android:layout_width="@dimen/cling_migration_bg_size"
32            android:layout_height="@dimen/cling_migration_bg_size"
33            android:layout_below="@+id/ic_cling_migration"
34            android:layout_centerHorizontal="true"
35            android:layout_marginTop="@dimen/cling_migration_bg_shift"
36            android:src="@drawable/bg_migration_cling" />
37
38        <ImageView
39            android:id="@+id/ic_cling_migration"
40            android:layout_width="@dimen/cling_migration_logo_width"
41            android:layout_height="@dimen/cling_migration_logo_height"
42            android:layout_alignParentTop="true"
43            android:layout_centerHorizontal="true"
44            android:src="@drawable/ic_migration" />
45
46        <LinearLayout
47            android:layout_width="@dimen/cling_migration_content_width"
48            android:layout_height="wrap_content"
49            android:layout_below="@+id/ic_cling_migration"
50            android:layout_marginStart="@dimen/cling_migration_content_margin"
51            android:layout_marginLeft="@dimen/cling_migration_content_margin"
52            android:orientation="vertical"
53            android:paddingLeft="24dp"
54            android:paddingRight="24dp" >
55
56            <TextView
57                android:layout_width="wrap_content"
58                android:layout_height="wrap_content"
59                android:paddingBottom="8dp"
60                android:text="@string/first_run_cling_title"
61                android:textColor="#E1000000"
62                android:textSize="34sp" />
63
64            <TextView
65                android:layout_width="wrap_content"
66                android:layout_height="wrap_content"
67                android:fontFamily="sans-serif-medium"
68                android:text="@string/migration_cling_title"
69                android:textColor="#E1000000"
70                android:textSize="20sp" />
71
72            <TextView
73                android:layout_width="wrap_content"
74                android:layout_height="wrap_content"
75                android:paddingBottom="24dp"
76                android:text="@string/migration_cling_description"
77                android:textColor="#99000000"
78                android:textSize="16sp" />
79
80            <LinearLayout
81                android:layout_width="match_parent"
82                android:layout_height="wrap_content" >
83
84                <Button
85                    android:id="@+id/cling_dismiss_migration_copy_apps"
86                    style="?android:attr/buttonBarButtonStyle"
87                    android:layout_width="0dp"
88                    android:layout_height="wrap_content"
89                    android:layout_weight="1"
90                    android:fontFamily="sans-serif-medium"
91                    android:text="@string/migration_cling_copy_apps"
92                    android:textColor="#FFFFFFFF"
93                    android:textSize="14sp" />
94
95                <Button
96                    android:id="@+id/cling_dismiss_migration_use_default"
97                    style="?android:attr/buttonBarButtonStyle"
98                    android:layout_width="0dp"
99                    android:layout_height="wrap_content"
100                    android:layout_weight="1"
101                    android:fontFamily="sans-serif-medium"
102                    android:text="@string/migration_cling_use_default"
103                    android:textColor="#deFFFFFF"
104                    android:textSize="14sp" />
105            </LinearLayout>
106        </LinearLayout>
107    </RelativeLayout>
108
109</FrameLayout>