blob: 07ac39a3eceae2d862128d8cd6311750a20cb8bb [file] [log] [blame]
Winson Chunga4ccb862014-08-22 15:26:27 -07001<?xml version="1.0" encoding="utf-8"?>
Peter Schillerb124d562015-12-11 21:31:17 -08002<!--
3 Copyright (C) 2014 The Android Open Source Project
Winson Chunga4ccb862014-08-22 15:26:27 -07004
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
Peter Schillerb124d562015-12-11 21:31:17 -08008
Winson Chunga4ccb862014-08-22 15:26:27 -07009 http://www.apache.org/licenses/LICENSE-2.0
Peter Schillerb124d562015-12-11 21:31:17 -080010
Winson Chunga4ccb862014-08-22 15:26:27 -070011 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<com.android.systemui.recents.views.TaskViewHeader
18 xmlns:android="http://schemas.android.com/apk/res/android"
19 android:id="@+id/task_view_bar"
20 android:layout_width="match_parent"
21 android:layout_height="@dimen/recents_task_bar_height"
22 android:layout_gravity="top|center_horizontal">
23 <com.android.systemui.recents.views.FixedSizeImageView
Winson Chung296278a2015-12-17 12:09:02 -050024 android:id="@+id/icon"
Vadim Tryshevc1a6c652015-06-04 08:57:56 -070025 android:contentDescription="@string/recents_app_info_button_label"
Winson Chunga4ccb862014-08-22 15:26:27 -070026 android:layout_width="@dimen/recents_task_view_application_icon_size"
27 android:layout_height="@dimen/recents_task_view_application_icon_size"
28 android:layout_marginStart="8dp"
29 android:layout_gravity="center_vertical|start"
30 android:padding="8dp"
31 android:background="@drawable/recents_button_bg" />
32 <TextView
Winson Chung296278a2015-12-17 12:09:02 -050033 android:id="@+id/title"
Winson Chunga4ccb862014-08-22 15:26:27 -070034 android:layout_width="match_parent"
35 android:layout_height="wrap_content"
36 android:layout_gravity="center_vertical|start"
37 android:layout_marginStart="64dp"
Winson Chung48f2cda2015-12-11 13:20:12 -050038 android:layout_marginEnd="112dp"
Winson Chunga4ccb862014-08-22 15:26:27 -070039 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="2"
45 android:ellipsize="marquee"
46 android:fadingEdge="horizontal" />
47 <com.android.systemui.recents.views.FixedSizeImageView
Winson Chungd16c5652015-01-26 16:11:07 -080048 android:id="@+id/move_task"
49 android:layout_width="48dp"
50 android:layout_height="48dp"
51 android:layout_marginEnd="52dp"
52 android:layout_gravity="center_vertical|end"
53 android:padding="12dp"
54 android:background="@drawable/recents_button_bg"
55 android:src="@drawable/star"
56 android:visibility="gone" />
57 <com.android.systemui.recents.views.FixedSizeImageView
Winson Chunga4ccb862014-08-22 15:26:27 -070058 android:id="@+id/dismiss_task"
59 android:layout_width="48dp"
60 android:layout_height="48dp"
61 android:layout_marginEnd="4dp"
62 android:layout_gravity="center_vertical|end"
63 android:padding="12dp"
64 android:background="@drawable/recents_button_bg"
65 android:visibility="invisible"
66 android:src="@drawable/recents_dismiss_light" />
Peter Schillerb124d562015-12-11 21:31:17 -080067 <ProgressBar
68 android:id="@+id/focus_timer_indicator"
69 style="?android:attr/progressBarStyleHorizontal"
70 android:layout_width="match_parent"
71 android:layout_height="5dp"
72 android:layout_gravity="bottom"
73 android:indeterminateOnly="false"
74 android:visibility="invisible" />
Stefan Kuhne61b47bb2015-07-28 14:04:25 -070075</com.android.systemui.recents.views.TaskViewHeader>