Update to platforms;android-28.
[android_tools.git] / sdk / platforms / android-28 / data / res / layout / popup_menu_item_layout.xml
blob1be915e809e628e8357817104fbd9ed66bc25954
1 <?xml version="1.0" encoding="utf-8"?>
2 <!-- Copyright (C) 2010 The Android Open Source Project
4      Licensed under the Apache License, Version 2.0 (the "License");
5      you may not use this file except in compliance with the License.
6      You may obtain a copy of the License at
7   
8           http://www.apache.org/licenses/LICENSE-2.0
9   
10      Unless required by applicable law or agreed to in writing, software
11      distributed under the License is distributed on an "AS IS" BASIS,
12      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13      See the License for the specific language governing permissions and
14      limitations under the License.
15 -->
17 <com.android.internal.view.menu.ListMenuItemView xmlns:android="http://schemas.android.com/apk/res/android"
18     android:layout_width="match_parent"
19     android:layout_height="wrap_content"
20     android:minWidth="196dip"
21     android:orientation="vertical" >
23     <ImageView
24         android:id="@+id/group_divider"
25         android:layout_width="match_parent"
26         android:layout_height="1dip"
27         android:layout_marginTop="4dip"
28         android:layout_marginBottom="4dip"
29         android:background="@drawable/list_divider_material" />
31     <LinearLayout
32         android:id="@+id/content"
33         android:layout_width="match_parent"
34         android:layout_height="?attr/dropdownListPreferredItemHeight"
35         android:paddingEnd="16dip"
36         android:duplicateParentState="true" >
38         <!-- Icon will be inserted here. -->
40         <!-- The title and summary have some gap between them,
41         and this 'group' should be centered vertically. -->
42         <RelativeLayout
43             android:layout_width="0dip"
44             android:layout_weight="1"
45             android:layout_height="wrap_content"
46             android:layout_gravity="center_vertical"
47             android:layout_marginStart="16dip"
48             android:duplicateParentState="true">
50             <TextView
51                 android:id="@+id/title"
52                 android:layout_width="match_parent"
53                 android:layout_height="wrap_content"
54                 android:layout_alignParentTop="true"
55                 android:layout_alignParentStart="true"
56                 android:textAppearance="?attr/textAppearanceLargePopupMenu"
57                 android:singleLine="true"
58                 android:duplicateParentState="true"
59                 android:ellipsize="marquee"
60                 android:fadingEdge="horizontal"
61                 android:textAlignment="viewStart" />
63             <TextView
64                 android:id="@+id/shortcut"
65                 android:layout_width="wrap_content"
66                 android:layout_height="wrap_content"
67                 android:layout_below="@id/title"
68                 android:layout_alignParentStart="true"
69                 android:textAppearance="?attr/textAppearanceSmallPopupMenu"
70                 android:singleLine="true"
71                 android:duplicateParentState="true"
72                 android:textAlignment="viewStart" />
74         </RelativeLayout>
76         <ImageView
77             android:id="@+id/submenuarrow"
78             android:layout_width="wrap_content"
79             android:layout_height="wrap_content"
80             android:layout_gravity="center"
81             android:layout_marginStart="8dp"
82             android:scaleType="center"
83             android:visibility="gone" />
85         <!-- Checkbox, and/or radio button will be inserted here. -->
87     </LinearLayout>
89 </com.android.internal.view.menu.ListMenuItemView>