Android O SDK.
[android_tools.git] / sdk / platforms / android-26 / data / res / layout / decor_caption.xml
blob02467369825dc562ecea57a1e714a348b147d601
1 <?xml version="1.0" encoding="utf-8"?>
2 <!--
3 **
4 ** Copyright 2015, The Android Open Source Project
5 **
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
9 **
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.
18 -->
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" >
25     <LinearLayout
26             android:id="@+id/caption"
27             android:layout_width="match_parent"
28             android:layout_height="wrap_content"
29             android:gravity="end"
30             android:background="@drawable/decor_caption_title"
31             android:focusable="false"
32             android:descendantFocusability="blocksDescendants" >
33         <Button
34                 android:id="@+id/maximize_window"
35                 android:layout_width="32dp"
36                 android:layout_height="32dp"
37                 android:layout_margin="5dp"
38                 android:padding="4dp"
39                 android:layout_gravity="center_vertical|end"
40                 android:contentDescription="@string/maximize_button_text"
41                 android:background="@drawable/decor_maximize_button_dark" />
42         <Button
43                 android:id="@+id/close_window"
44                 android:layout_width="32dp"
45                 android:layout_height="32dp"
46                 android:layout_margin="5dp"
47                 android:padding="4dp"
48                 android:layout_gravity="center_vertical|end"
49                 android:contentDescription="@string/close_button_text"
50                 android:background="@drawable/decor_close_button_dark" />
51     </LinearLayout>
52 </com.android.internal.widget.DecorCaptionView>