Home | History | Annotate | Download | only in layout-port
      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="workspace_portrait">
     22     <FrameLayout
     23         android:id="@+id/content"
     24         android:layout_width="match_parent"
     25         android:layout_height="match_parent">
     26         <LinearLayout
     27             android:layout_width="match_parent"
     28             android:layout_height="wrap_content"
     29             android:layout_gravity="top"
     30             android:layout_marginStart="25dp"
     31             android:layout_marginEnd="25dp"
     32             android:layout_marginTop="30dp"
     33             android:orientation="vertical">
     34             <LinearLayout
     35                 android:paddingLeft="20dp"
     36                 android:paddingRight="20dp"
     37                 android:paddingTop="20dp"
     38                 android:paddingBottom="20dp"
     39                 android:layout_width="match_parent"
     40                 android:layout_height="wrap_content"
     41                 android:orientation="vertical"
     42                 android:background="@drawable/cling">
     43                 <TextView
     44                     style="@style/ClingTitleText"
     45                     android:layout_width="wrap_content"
     46                     android:layout_height="wrap_content"
     47                     android:text="@string/workspace_cling_title" />
     48                 <TextView
     49                     style="@style/ClingText"
     50                     android:layout_width="match_parent"
     51                     android:layout_height="wrap_content"
     52                     android:text="@string/workspace_cling_move_item" />
     53             </LinearLayout>
     54             <ImageView
     55                 android:layout_width="wrap_content"
     56                 android:layout_height="wrap_content"
     57                 android:layout_gravity="center_horizontal"
     58                 android:src="@drawable/cling_arrow_down" />
     59         </LinearLayout>
     60 
     61         <LinearLayout
     62             android:id="@+id/focused_hotseat_app_bubble"
     63             android:layout_width="wrap_content"
     64             android:layout_height="wrap_content"
     65             android:layout_gravity="bottom|left"
     66             android:layout_marginLeft="25dp"
     67             android:layout_marginBottom="90dp"
     68             android:orientation="vertical"
     69             android:visibility="gone">
     70             <LinearLayout
     71                 android:paddingLeft="20dp"
     72                 android:paddingRight="20dp"
     73                 android:paddingTop="20dp"
     74                 android:paddingBottom="20dp"
     75                 android:layout_width="240dp"
     76                 android:layout_height="wrap_content"
     77                 android:orientation="vertical"
     78                 android:background="@drawable/cling">
     79                 <TextView
     80                     android:id="@+id/focused_hotseat_app_title"
     81                     style="@style/ClingTitleText"
     82                     android:layout_width="wrap_content"
     83                     android:layout_height="wrap_content" />
     84                 <TextView
     85                     android:id="@+id/focused_hotseat_app_description"
     86                     style="@style/ClingText"
     87                     android:layout_width="match_parent"
     88                     android:layout_height="wrap_content" />
     89             </LinearLayout>
     90             <ImageView
     91                 android:layout_width="wrap_content"
     92                 android:layout_height="wrap_content"
     93                 android:layout_gravity="left"
     94                 android:layout_marginLeft="78dp"
     95                 android:src="@drawable/cling_arrow_down" />
     96         </LinearLayout>
     97     </FrameLayout>
     98 
     99     <Button
    100         style="@style/ClingButton"
    101         android:layout_width="wrap_content"
    102         android:layout_height="wrap_content"
    103         android:layout_marginBottom="15dp"
    104         android:layout_marginRight="20dp"
    105         android:layout_gravity="bottom|right"
    106         android:onClick="dismissWorkspaceCling" />
    107 </com.android.launcher3.Cling>
    108