1<?xml version="1.0" encoding="utf-8"?>
2<!--
3     Copyright (C) 2021 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.GoOverviewActionsView
18    xmlns:android="http://schemas.android.com/apk/res/android"
19    android:layout_width="match_parent"
20    android:layout_height="wrap_content"
21    android:layout_gravity="center_horizontal|bottom">
22
23    <LinearLayout
24        android:id="@+id/action_buttons"
25        android:layout_width="match_parent"
26        android:layout_height="@dimen/overview_actions_height"
27        android:layout_gravity="top|center_horizontal"
28        android:orientation="horizontal">
29
30        <Space
31            android:layout_width="0dp"
32            android:layout_height="1dp"
33            android:layout_weight="1" />
34
35        <LinearLayout
36            android:id="@+id/layout_translate"
37            style="@style/GoOverviewActionButtonContainer">
38            <ImageButton
39                android:id="@+id/action_translate"
40                style="@style/GoOverviewActionButton"
41                android:src="@drawable/ic_translate"
42                android:contentDescription="@string/action_translate" />
43            <TextView
44                style="@style/GoOverviewActionButtonCaption"
45                android:text="@string/action_translate" />
46        </LinearLayout>
47
48        <Space
49            android:id="@+id/spacer_translate"
50            android:layout_width="@dimen/go_overview_button_container_margin"
51            android:layout_height="1dp" />
52
53        <LinearLayout
54            android:id="@+id/layout_listen"
55            style="@style/GoOverviewActionButtonContainer">
56            <ImageButton
57                android:id="@+id/action_listen"
58                style="@style/GoOverviewActionButton"
59                android:src="@drawable/ic_listen"
60                android:contentDescription="@string/action_listen"
61                android:background="@drawable/round_rect_button" />
62            <TextView
63                style="@style/GoOverviewActionButtonCaption"
64                android:text="@string/action_listen" />
65        </LinearLayout>
66
67        <Space
68            android:id="@+id/spacer_listen"
69            android:layout_width="@dimen/go_overview_button_container_margin"
70            android:layout_height="1dp" />
71
72        <LinearLayout
73            android:id="@+id/layout_screenshot"
74            style="@style/GoOverviewActionButtonContainer">
75            <ImageButton
76                android:id="@+id/action_screenshot"
77                style="@style/GoOverviewActionButton"
78                android:src="@drawable/ic_screenshot"
79                android:contentDescription="@string/action_screenshot"
80                android:background="@drawable/round_rect_button" />
81            <TextView
82                style="@style/GoOverviewActionButtonCaption"
83                android:text="@string/action_screenshot" />
84        </LinearLayout>
85
86        <Space
87            android:layout_width="0dp"
88            android:layout_height="1dp"
89            android:layout_weight="1" />
90
91        <!-- Will be enabled in a future version. -->
92        <LinearLayout
93            style="@style/GoOverviewActionButtonContainer"
94            android:visibility="gone" >
95            <ImageButton
96                android:id="@+id/action_search"
97                style="@style/GoOverviewActionButton"
98                android:src="@drawable/ic_search"
99                android:contentDescription="@string/action_search"
100                android:background="@drawable/round_rect_button" />
101            <TextView
102                style="@style/GoOverviewActionButtonCaption"
103                android:text="@string/action_search" />
104        </LinearLayout>
105
106        <!-- Unused. Included only for compatibility with parent class. -->
107        <Button
108            android:id="@+id/action_split"
109            style="@style/GoOverviewActionButton"
110            android:layout_width="wrap_content"
111            android:layout_height="wrap_content"
112            android:drawableStart="@drawable/ic_split_vertical"
113            android:text="@string/action_split"
114            android:theme="@style/ThemeControlHighlightWorkspaceColor"
115            android:visibility="gone" />
116
117        <Space
118            android:id="@+id/action_split_space"
119            android:layout_width="0dp"
120            android:layout_height="1dp"
121            android:layout_weight="1"
122            android:visibility="gone" />
123
124    </LinearLayout>
125
126    <!-- Unused. Included only for compatibility with parent class. -->
127    <Button
128        android:id="@+id/action_save_app_pair"
129        style="@style/GoOverviewActionButton"
130        android:layout_width="wrap_content"
131        android:layout_height="wrap_content"
132        android:layout_gravity="top|center_horizontal"
133        android:drawableStart="@drawable/ic_save_app_pair_up_down"
134        android:text="@string/action_save_app_pair"
135        android:theme="@style/ThemeControlHighlightWorkspaceColor"
136        android:visibility="gone" />
137
138</com.android.quickstep.views.GoOverviewActionsView>