Home | History | Annotate | Download | only in layout
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!-- Copyright (C) 2014 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.systemui.recents.views.TaskView
     17     xmlns:android="http://schemas.android.com/apk/res/android"
     18     android:layout_width="match_parent"
     19     android:layout_height="match_parent"
     20     android:focusable="true">
     21     <com.android.systemui.recents.views.TaskViewThumbnail
     22         android:id="@+id/task_view_thumbnail"
     23         android:layout_width="match_parent"
     24         android:layout_height="match_parent" />
     25 
     26     <include layout="@layout/recents_task_view_header" />
     27 
     28     <!-- TODO: Move this into a view stub -->
     29     <com.android.systemui.statusbar.AlphaOptimizedFrameLayout
     30         android:id="@+id/lock_to_app_fab"
     31         android:layout_width="@dimen/recents_lock_to_app_size"
     32         android:layout_height="@dimen/recents_lock_to_app_size"
     33         android:layout_gravity="bottom|end"
     34         android:layout_marginEnd="15dp"
     35         android:layout_marginBottom="15dp"
     36         android:translationZ="4dp"
     37         android:contentDescription="@string/recents_lock_to_app_button_label"
     38         android:background="@drawable/recents_lock_to_task_button_bg"
     39         android:visibility="invisible"
     40         android:alpha="0">
     41         <ImageView
     42             android:layout_width="@dimen/recents_lock_to_app_icon_size"
     43             android:layout_height="@dimen/recents_lock_to_app_icon_size"
     44             android:layout_gravity="center"
     45             android:src="@drawable/recents_lock_to_app_pin" />
     46     </com.android.systemui.statusbar.AlphaOptimizedFrameLayout>
     47 
     48     <!-- The incompatible app toast -->
     49     <ViewStub android:id="@+id/incompatible_app_toast_stub"
     50                 android:inflatedId="@+id/incompatible_app_toast"
     51                 android:layout="@*android:layout/transient_notification"
     52                 android:layout_width="wrap_content"
     53                 android:layout_height="wrap_content"
     54                 android:layout_gravity="top|center_horizontal"
     55                 android:layout_marginTop="48dp"
     56                 android:layout_marginLeft="16dp"
     57                 android:layout_marginRight="16dp" />
     58 </com.android.systemui.recents.views.TaskView>
     59 
     60 
     61