blob: 4830e5df8df43fe570345b4591da89d4c4ad6116 [file] [log] [blame]
Winson Chungaf40f202013-09-18 18:26:31 -07001<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2011 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<com.android.launcher3.Cling
17 xmlns:android="http://schemas.android.com/apk/res/android"
18 xmlns:launcher="http://schemas.android.com/apk/res-auto/com.android.launcher3"
19 android:layout_width="match_parent"
20 android:layout_height="match_parent"
21 launcher:drawIdentifier="first_run_portrait">
22 <FrameLayout
23 android:id="@+id/content"
24 android:layout_width="match_parent"
25 android:layout_height="match_parent">
26 <LinearLayout
27 android:id="@+id/bubble_content"
Winson Chung45cab392013-10-02 17:45:32 -070028 android:layout_width="match_parent"
Winson Chungaf40f202013-09-18 18:26:31 -070029 android:layout_height="wrap_content"
30 android:layout_gravity="center"
Winson Chung45cab392013-10-02 17:45:32 -070031 android:layout_marginLeft="100dp"
32 android:layout_marginRight="100dp"
Winson Chungaf40f202013-09-18 18:26:31 -070033 android:orientation="vertical">
34 <TextView
35 style="@style/ClingAltTitleText"
Winson Chung45cab392013-10-02 17:45:32 -070036 android:layout_width="match_parent"
Winson Chungaf40f202013-09-18 18:26:31 -070037 android:layout_height="wrap_content"
38 android:layout_gravity="center_horizontal"
39 android:layout_marginBottom="10dp"
40 android:text="@string/first_run_cling_title"
Winson Chunge6eabff2013-09-24 11:01:23 -070041 android:textColor="#FFFFFFFF"
Winson Chung45cab392013-10-02 17:45:32 -070042 android:textSize="30sp"
43 android:gravity="center" />
Winson Chungaf40f202013-09-18 18:26:31 -070044 <TextView
45 style="@style/ClingAltTitleText"
Winson Chung45cab392013-10-02 17:45:32 -070046 android:layout_width="match_parent"
Winson Chungaf40f202013-09-18 18:26:31 -070047 android:layout_height="wrap_content"
Winson Chung45cab392013-10-02 17:45:32 -070048 android:layout_gravity="center_horizontal"
Winson Chungaf40f202013-09-18 18:26:31 -070049 android:text="@string/first_run_cling_description"
50 android:textColor="#80000000"
Winson Chung45cab392013-10-02 17:45:32 -070051 android:textSize="16sp"
52 android:gravity="center" />
Winson Chungaf40f202013-09-18 18:26:31 -070053 </LinearLayout>
54 <TextView
55 style="@style/ClingHintText"
Winson Chunge6eabff2013-09-24 11:01:23 -070056 android:id="@+id/search_bar_hint"
Winson Chungf7e11e92013-10-10 16:28:52 -070057 android:layout_width="wrap_content"
Winson Chungaf40f202013-09-18 18:26:31 -070058 android:layout_height="wrap_content"
59 android:layout_gravity="top|end"
60 android:layout_marginEnd="10dp"
Winson Chung45cab392013-10-02 17:45:32 -070061 android:layout_marginTop="65dp"
Winson Chungf7e11e92013-10-10 16:28:52 -070062 android:gravity="center_horizontal"
63 android:maxWidth="160dp"
Winson Chunge6eabff2013-09-24 11:01:23 -070064 android:visibility="gone"
65 android:drawableTop="@drawable/cling_arrow_up"
66 android:drawablePadding="5dp"
Winson Chungaf40f202013-09-18 18:26:31 -070067 android:text="@string/first_run_cling_search_bar_hint" />
68 <TextView
69 style="@style/ClingHintText"
Winson Chunge6eabff2013-09-24 11:01:23 -070070 android:id="@+id/custom_content_hint"
Winson Chungf7e11e92013-10-10 16:28:52 -070071 android:layout_width="wrap_content"
Winson Chungaf40f202013-09-18 18:26:31 -070072 android:layout_height="wrap_content"
Winson Chungf7e11e92013-10-10 16:28:52 -070073 android:layout_gravity="top|start"
Winson Chungaf40f202013-09-18 18:26:31 -070074 android:layout_marginStart="10dp"
Winson Chungf7e11e92013-10-10 16:28:52 -070075 android:layout_marginEnd="10dp"
Winson Chungaf40f202013-09-18 18:26:31 -070076 android:layout_marginTop="100dp"
Winson Chungf7e11e92013-10-10 16:28:52 -070077 android:maxWidth="160dp"
Winson Chunge6eabff2013-09-24 11:01:23 -070078 android:visibility="gone"
Winson Chungf7e11e92013-10-10 16:28:52 -070079 android:drawableStart="@drawable/cling_arrow_start"
Winson Chunge6eabff2013-09-24 11:01:23 -070080 android:drawablePadding="10dp"
Winson Chungaf40f202013-09-18 18:26:31 -070081 android:text="@string/first_run_cling_custom_content_hint" />
82 <TextView
83 style="@style/ClingHintText"
Winson Chungf7e11e92013-10-10 16:28:52 -070084 android:layout_width="wrap_content"
Winson Chungaf40f202013-09-18 18:26:31 -070085 android:layout_height="wrap_content"
86 android:layout_gravity="bottom|end"
87 android:layout_marginEnd="10dp"
Winson Chung45cab392013-10-02 17:45:32 -070088 android:layout_marginBottom="85dp"
Winson Chungf7e11e92013-10-10 16:28:52 -070089 android:maxWidth="180dp"
90 android:drawableEnd="@drawable/cling_arrow_end"
Winson Chunge6eabff2013-09-24 11:01:23 -070091 android:drawablePadding="5dp"
Winson Chungaf40f202013-09-18 18:26:31 -070092 android:text="@string/first_run_cling_create_screens_hint" />
93 </FrameLayout>
94 <Button
95 style="@style/ClingButton"
96 android:layout_width="wrap_content"
97 android:layout_height="wrap_content"
98 android:layout_marginBottom="15dp"
99 android:layout_marginEnd="20dp"
100 android:layout_gravity="bottom|end"
101 android:onClick="dismissFirstRunCling" />
102</com.android.launcher3.Cling>