2018-01-18 11:48:05 -08:00
|
|
|
<?xml version="1.0" encoding="utf-8"?><!--
|
2017-11-10 11:42:13 -08:00
|
|
|
Copyright (C) 2017 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.
|
|
|
|
|
-->
|
2018-05-21 11:59:48 -07:00
|
|
|
<com.android.quickstep.views.TaskView
|
|
|
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
2017-11-10 11:42:13 -08:00
|
|
|
android:layout_width="match_parent"
|
2018-01-18 11:48:05 -08:00
|
|
|
android:layout_height="match_parent"
|
2018-06-06 15:39:13 -07:00
|
|
|
android:defaultFocusHighlightEnabled="false"
|
|
|
|
|
android:elevation="4dp"
|
|
|
|
|
android:focusable="true">
|
2017-11-10 11:42:13 -08:00
|
|
|
|
2018-03-13 09:57:05 -07:00
|
|
|
<com.android.quickstep.views.TaskThumbnailView
|
2017-11-10 11:42:13 -08:00
|
|
|
android:id="@+id/snapshot"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent"
|
2018-01-18 11:48:05 -08:00
|
|
|
android:layout_marginTop="@dimen/task_thumbnail_top_margin" />
|
|
|
|
|
|
2018-05-02 15:36:59 -07:00
|
|
|
<com.android.quickstep.views.IconView
|
2017-11-10 11:42:13 -08:00
|
|
|
android:id="@+id/icon"
|
2017-11-15 15:34:07 -08:00
|
|
|
android:layout_width="@dimen/task_thumbnail_icon_size"
|
|
|
|
|
android:layout_height="@dimen/task_thumbnail_icon_size"
|
2018-06-06 15:39:13 -07:00
|
|
|
android:layout_gravity="top|center_horizontal"
|
2018-05-21 11:59:48 -07:00
|
|
|
android:focusable="false"
|
2018-06-06 15:39:13 -07:00
|
|
|
android:importantForAccessibility="no" />
|
2018-10-03 16:34:41 -07:00
|
|
|
|
|
|
|
|
<com.android.quickstep.views.DigitalWellBeingToast
|
|
|
|
|
android:id="@+id/digital_well_being_toast"
|
|
|
|
|
android:layout_width="match_parent"
|
2019-01-14 14:41:29 -08:00
|
|
|
android:layout_height="48dp"
|
2018-10-03 16:34:41 -07:00
|
|
|
android:importantForAccessibility="noHideDescendants"
|
2019-01-14 14:41:29 -08:00
|
|
|
android:background="@drawable/bg_wellbeing_toast"
|
2018-10-03 16:34:41 -07:00
|
|
|
android:layout_gravity="bottom"
|
2019-01-10 15:25:36 -08:00
|
|
|
android:gravity="center"
|
2019-01-18 11:22:39 -08:00
|
|
|
android:visibility="gone">
|
|
|
|
|
<ImageView
|
|
|
|
|
android:id="@+id/digital_well_being_hourglass"
|
|
|
|
|
android:layout_width="24dp"
|
|
|
|
|
android:layout_height="24dp"
|
|
|
|
|
android:layout_marginEnd="8dp"
|
2018-10-03 16:34:41 -07:00
|
|
|
/>
|
2019-01-18 11:22:39 -08:00
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/digital_well_being_remaining_time"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="24dp"
|
|
|
|
|
android:fontFamily="sans-serif"
|
|
|
|
|
android:textSize="14sp"
|
|
|
|
|
android:textColor="@android:color/white"
|
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
|
/>
|
|
|
|
|
</com.android.quickstep.views.DigitalWellBeingToast>
|
2018-03-13 09:57:05 -07:00
|
|
|
</com.android.quickstep.views.TaskView>
|