Home | History | Annotate | Download | only in layout-land
      1 <?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="migration_landscape">
     22     <FrameLayout
     23         android:id="@+id/content"
     24         android:layout_width="match_parent"
     25         android:layout_height="match_parent"
     26         android:orientation="vertical">
     27 
     28         <LinearLayout
     29             android:layout_width="match_parent"
     30             android:layout_height="wrap_content"
     31             android:layout_gravity="top"
     32             android:orientation="vertical">
     33             <TextView
     34                 android:layout_width="match_parent"
     35                 android:layout_height="wrap_content"
     36                 android:layout_gravity="top"
     37                 android:gravity="center"
     38                 android:text="@string/first_run_cling_title"
     39                 android:textSize="42dp"
     40                 android:textColor="#FFffffff" />
     41             <ImageView
     42                 android:layout_width="wrap_content"
     43                 android:layout_height="wrap_content"
     44                 android:layout_marginTop="10dp"
     45                 android:layout_marginBottom="0dp"
     46                 android:layout_gravity="center_horizontal"
     47                 android:src="@drawable/on_boarding_welcome" />
     48 
     49             <ImageView
     50                 android:layout_width="wrap_content"
     51                 android:layout_height="wrap_content"
     52                 android:layout_gravity="center_horizontal"
     53                 android:src="@drawable/cling_arrow_up" />
     54             <LinearLayout
     55                 android:layout_width="match_parent"
     56                 android:layout_height="wrap_content"
     57                 android:layout_marginLeft="25dp"
     58                 android:layout_marginRight="25dp"
     59                 android:paddingLeft="25dp"
     60                 android:paddingRight="25dp"
     61                 android:paddingTop="20dp"
     62                 android:paddingBottom="20dp"
     63                 android:orientation="vertical"
     64                 android:background="@drawable/cling">
     65                 <TextView
     66                     style="@style/ClingTitleText"
     67                     android:layout_width="wrap_content"
     68                     android:layout_height="wrap_content"
     69                     android:text="@string/migration_cling_title" />
     70                 <TextView
     71                     style="@style/ClingText"
     72                     android:layout_width="match_parent"
     73                     android:layout_height="wrap_content"
     74                     android:text="@string/migration_cling_description" />
     75             </LinearLayout>
     76         </LinearLayout>
     77 
     78         <LinearLayout
     79             android:layout_width="match_parent"
     80             android:layout_height="wrap_content"
     81             android:layout_gravity="bottom"
     82             android:layout_marginLeft="25dp"
     83             android:layout_marginRight="25dp"
     84             android:layout_marginBottom="25dp"
     85             android:orientation="vertical">
     86             <Button
     87                 style="@style/ClingButton"
     88                 android:layout_width="match_parent"
     89                 android:layout_height="wrap_content"
     90                 android:text="@string/migration_cling_copy_apps"
     91                 android:onClick="dismissMigrationClingCopyApps" />
     92             <Button
     93                 style="@style/ClingButton"
     94                 android:layout_width="match_parent"
     95                 android:layout_height="wrap_content"
     96                 android:text="@string/migration_cling_use_default"
     97                 android:onClick="dismissMigrationClingUseDefault" />
     98         </LinearLayout>
     99     </FrameLayout>
    100 </com.android.launcher3.Cling>
    101