Home | History | Annotate | Download | only in layout
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!--
      3      Copyright (C) 2014 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 <!-- The layouts params are calculated in TaskViewHeader.java -->
     18 <com.android.systemui.recents.views.TaskViewHeader
     19     xmlns:android="http://schemas.android.com/apk/res/android"
     20     android:id="@+id/task_view_bar"
     21     android:layout_width="match_parent"
     22     android:layout_height="wrap_content"
     23     android:layout_gravity="top|center_horizontal">
     24     <com.android.systemui.recents.views.FixedSizeImageView
     25         android:id="@+id/icon"
     26         android:contentDescription="@string/recents_app_info_button_label"
     27         android:layout_width="wrap_content"
     28         android:layout_height="wrap_content"
     29         android:layout_gravity="center_vertical|start"
     30         android:paddingTop="8dp"
     31         android:paddingBottom="8dp"
     32         android:paddingStart="16dp"
     33         android:paddingEnd="12dp" />
     34     <TextView
     35         android:id="@+id/title"
     36         android:layout_width="match_parent"
     37         android:layout_height="wrap_content"
     38         android:layout_gravity="center_vertical|start"
     39         android:textSize="16sp"
     40         android:textColor="#ffffffff"
     41         android:text="@string/recents_empty_message"
     42         android:fontFamily="sans-serif-medium"
     43         android:singleLine="true"
     44         android:maxLines="1"
     45         android:ellipsize="marquee"
     46         android:fadingEdge="horizontal"
     47         android:forceHasOverlappingRendering="false" />
     48     <com.android.systemui.recents.views.FixedSizeImageView
     49         android:id="@+id/move_task"
     50         android:layout_width="wrap_content"
     51         android:layout_height="wrap_content"
     52         android:layout_gravity="center_vertical|end"
     53         android:padding="@dimen/recents_task_view_header_button_padding"
     54         android:src="@drawable/star"
     55         android:background="?android:selectableItemBackground"
     56         android:alpha="0"
     57         android:visibility="gone" />
     58     <com.android.systemui.recents.views.FixedSizeImageView
     59         android:id="@+id/dismiss_task"
     60         android:layout_width="wrap_content"
     61         android:layout_height="wrap_content"
     62         android:layout_gravity="center_vertical|end"
     63         android:padding="@dimen/recents_task_view_header_button_padding"
     64         android:src="@drawable/recents_dismiss_light"
     65         android:background="?android:selectableItemBackground"
     66         android:alpha="0"
     67         android:visibility="gone" />
     68 
     69     <!-- The progress indicator shows if auto-paging is enabled -->
     70     <ViewStub android:id="@+id/focus_timer_indicator_stub"
     71                android:inflatedId="@+id/focus_timer_indicator"
     72                android:layout="@layout/recents_task_view_header_progress_bar"
     73                android:layout_width="match_parent"
     74                android:layout_height="5dp"
     75                android:layout_gravity="bottom" />
     76 
     77     <!-- The app overlay shows as the user long-presses on the app icon -->
     78     <ViewStub android:id="@+id/app_overlay_stub"
     79                android:inflatedId="@+id/app_overlay"
     80                android:layout="@layout/recents_task_view_header_overlay"
     81                android:layout_width="match_parent"
     82                android:layout_height="match_parent" />
     83 </com.android.systemui.recents.views.TaskViewHeader>
     84