1<?xml version="1.0" encoding="utf-8"?>
2<!--
3     Copyright (C) 2020 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<com.android.quickstep.views.OverviewActionsView xmlns:android="http://schemas.android.com/apk/res/android"
18    android:layout_width="match_parent"
19    android:layout_height="wrap_content"
20    android:layout_gravity="center_horizontal|bottom">
21
22    <LinearLayout
23        android:id="@+id/action_buttons"
24        android:layout_width="wrap_content"
25        android:layout_height="@dimen/overview_actions_height"
26        android:layout_gravity="bottom|center_horizontal"
27        android:orientation="horizontal">
28
29        <Button
30            android:id="@+id/action_screenshot"
31            style="@style/OverviewActionButton"
32            android:layout_width="wrap_content"
33            android:layout_height="wrap_content"
34            android:drawableStart="@drawable/ic_screenshot"
35            android:text="@string/action_screenshot"
36            android:theme="@style/ThemeControlHighlightWorkspaceColor" />
37
38        <Button
39            android:id="@+id/action_split"
40            style="@style/OverviewActionButton"
41            android:layout_width="wrap_content"
42            android:layout_height="wrap_content"
43            android:layout_marginStart="@dimen/overview_actions_button_spacing"
44            android:text="@string/action_split"
45            android:theme="@style/ThemeControlHighlightWorkspaceColor"
46            android:visibility="gone" />
47
48    </LinearLayout>
49
50    <!-- Currently, the only "group action button" is this save app pair button. If more are added,
51    a new LinearLayout may be needed to contain them, but beware of increased memory usage. -->
52    <Button
53        android:id="@+id/action_save_app_pair"
54        style="@style/OverviewActionButton"
55        android:layout_width="wrap_content"
56        android:layout_height="wrap_content"
57        android:text="@string/action_save_app_pair"
58        android:theme="@style/ThemeControlHighlightWorkspaceColor"
59        android:layout_gravity="bottom|center_horizontal"
60        android:visibility="gone" />
61
62</com.android.quickstep.views.OverviewActionsView>