1 <?xml version="1.0" encoding="utf-8"?>
4 ** Copyright 2015, The Android Open Source Project
6 ** Licensed under the Apache License, Version 2.0 (the "License");
7 ** you may not use this file except in compliance with the License.
8 ** You may obtain a copy of the License at
10 ** http://www.apache.org/licenses/LICENSE-2.0
12 ** Unless required by applicable law or agreed to in writing, software
13 ** distributed under the License is distributed on an "AS IS" BASIS,
14 ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 ** See the License for the specific language governing permissions and
16 ** limitations under the License.
20 <com.android.internal.widget.DecorCaptionView xmlns:android="http://schemas.android.com/apk/res/android"
21 android:orientation="vertical"
22 android:layout_width="match_parent"
23 android:layout_height="match_parent"
24 android:descendantFocusability="beforeDescendants" >
26 android:id="@+id/caption"
27 android:layout_width="match_parent"
28 android:layout_height="wrap_content"
30 android:background="@drawable/decor_caption_title"
31 android:focusable="false"
32 android:descendantFocusability="blocksDescendants" >
34 android:id="@+id/maximize_window"
35 android:layout_width="32dp"
36 android:layout_height="32dp"
37 android:layout_margin="5dp"
39 android:layout_gravity="center_vertical|end"
40 android:contentDescription="@string/maximize_button_text"
41 android:background="@drawable/decor_maximize_button_dark" />
43 android:id="@+id/close_window"
44 android:layout_width="32dp"
45 android:layout_height="32dp"
46 android:layout_margin="5dp"
48 android:layout_gravity="center_vertical|end"
49 android:contentDescription="@string/close_button_text"
50 android:background="@drawable/decor_close_button_dark" />
52 </com.android.internal.widget.DecorCaptionView>