blob: fb1980a526014c18062af492982d749c01e6e581 [file] [log] [blame]
<?xml version="1.0" encoding="utf-8"?>
<!--
~ Copyright (C) 2022 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.
-->
<com.android.wm.shell.windowdecor.WindowDecorLinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/desktop_mode_caption"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_horizontal"
android:orientation="horizontal"
android:background="@drawable/desktop_mode_decor_title">
<LinearLayout
android:id="@+id/open_menu_button"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:orientation="horizontal"
android:clickable="true"
android:focusable="true"
android:paddingStart="8dp">
<ImageView
android:id="@+id/application_icon"
android:layout_width="24dp"
android:layout_height="24dp"
android:layout_margin="4dp"
android:layout_gravity="center_vertical"
android:contentDescription="@string/app_icon_text" />
<TextView
android:id="@+id/application_name"
android:layout_width="0dp"
android:layout_height="match_parent"
android:minWidth="80dp"
android:textColor="@color/desktop_mode_caption_app_name_dark"
android:textSize="14sp"
android:textFontWeight="500"
android:gravity="center_vertical"
android:layout_weight="1"
android:paddingStart="4dp"
android:paddingEnd="4dp"
tools:text="Gmail"/>
<ImageButton
android:id="@+id/expand_menu_button"
android:layout_width="32dp"
android:layout_height="32dp"
android:padding="4dp"
android:contentDescription="@string/expand_menu_text"
android:src="@drawable/ic_baseline_expand_more_24"
android:tint="@color/desktop_mode_caption_expand_button_dark"
android:background="@null"
android:scaleType="fitCenter"
android:clickable="false"
android:focusable="false"
android:layout_gravity="center_vertical"/>
</LinearLayout>
<View
android:id="@+id/caption_handle"
android:layout_width="wrap_content"
android:layout_height="40dp"
android:layout_weight="1"/>
<ImageButton
android:id="@+id/close_window"
android:layout_width="40dp"
android:layout_height="40dp"
android:padding="4dp"
android:layout_marginEnd="8dp"
android:contentDescription="@string/close_button_text"
android:src="@drawable/decor_close_button_dark"
android:scaleType="fitCenter"
android:gravity="end"
android:background="@null"
android:tint="@color/desktop_mode_caption_close_button_dark"/>
</com.android.wm.shell.windowdecor.WindowDecorLinearLayout>