| <?xml version="1.0" encoding="utf-8"?> |
| <!-- |
| Copyright (C) 2014 The Android Open Source Project |
| |
| Licensed under the Apache License, Version 2.0 (the "License"); |
| you may not use this file except in compliance with the License. |
| You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| <!-- The layouts params are calculated in TaskViewHeader.java --> |
| <com.android.systemui.recents.views.TaskViewHeader |
| xmlns:android="http://schemas.android.com/apk/res/android" |
| android:id="@+id/task_view_bar" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:layout_gravity="top|center_horizontal"> |
| <com.android.systemui.recents.views.FixedSizeImageView |
| android:id="@+id/icon" |
| android:contentDescription="@string/recents_app_info_button_label" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_gravity="center_vertical|start" |
| android:paddingTop="8dp" |
| android:paddingBottom="8dp" |
| android:paddingStart="16dp" |
| android:paddingEnd="12dp" /> |
| <LinearLayout |
| android:id="@+id/title_container" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:layout_gravity="center_vertical|start" |
| android:orientation="vertical"> |
| <TextView |
| android:id="@+id/title" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:layout_gravity="start" |
| android:textSize="16sp" |
| android:textColor="#ffffffff" |
| android:text="@string/recents_empty_message" |
| android:fontFamily="sans-serif-medium" |
| android:singleLine="true" |
| android:maxLines="1" |
| android:ellipsize="marquee" |
| android:fadingEdge="horizontal" /> |
| <TextView |
| android:id="@+id/sub_title" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:layout_gravity="start" |
| android:textSize="11sp" |
| android:textColor="#ffffffff" |
| android:text="@string/recents_launch_non_dockable_task_label" |
| android:fontFamily="sans-serif-medium" |
| android:singleLine="true" |
| android:maxLines="1" |
| android:ellipsize="marquee" |
| android:fadingEdge="horizontal" |
| android:visibility="gone" /> |
| </LinearLayout> |
| <com.android.systemui.recents.views.FixedSizeImageView |
| android:id="@+id/move_task" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_gravity="center_vertical|end" |
| android:padding="@dimen/recents_task_view_header_button_padding" |
| android:src="@drawable/star" |
| android:background="?android:selectableItemBackground" |
| android:alpha="0" |
| android:visibility="gone" /> |
| <com.android.systemui.recents.views.FixedSizeImageView |
| android:id="@+id/dismiss_task" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_gravity="center_vertical|end" |
| android:padding="@dimen/recents_task_view_header_button_padding" |
| android:src="@drawable/recents_dismiss_light" |
| android:background="?android:selectableItemBackground" |
| android:alpha="0" |
| android:visibility="gone" /> |
| |
| <!-- The progress indicator shows if auto-paging is enabled --> |
| <ViewStub android:id="@+id/focus_timer_indicator_stub" |
| android:inflatedId="@+id/focus_timer_indicator" |
| android:layout="@layout/recents_task_view_header_progress_bar" |
| android:layout_width="match_parent" |
| android:layout_height="5dp" |
| android:layout_gravity="bottom" /> |
| |
| <!-- The app overlay shows as the user long-presses on the app icon --> |
| <ViewStub android:id="@+id/app_overlay_stub" |
| android:inflatedId="@+id/app_overlay" |
| android:layout="@layout/recents_task_view_header_overlay" |
| android:layout_width="match_parent" |
| android:layout_height="match_parent" /> |
| </com.android.systemui.recents.views.TaskViewHeader> |