1 |
<?xml version="1.0" encoding="utf-8"?> |
2 |
<!-- Copyright (C) 2010 The Android Open Source Project |
3 |
|
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 |
--> |
16 |
|
17 |
<android.support.v7.internal.view.menu.ListMenuItemView |
18 |
xmlns:android="http://schemas.android.com/apk/res/android" |
19 |
android:layout_width="match_parent" |
20 |
android:layout_height="?attr/dropdownListPreferredItemHeight" |
21 |
android:minWidth="196dip" |
22 |
style="@style/RtlOverlay.Widget.AppCompat.PopupMenuItem"> |
23 |
|
24 |
<!-- Icon will be inserted here. --> |
25 |
|
26 |
<!-- The title and summary have some gap between them, and this 'group' should be centered vertically. --> |
27 |
<RelativeLayout |
28 |
android:layout_width="0dip" |
29 |
android:layout_weight="1" |
30 |
android:layout_height="wrap_content" |
31 |
android:layout_gravity="center_vertical" |
32 |
android:duplicateParentState="true" |
33 |
style="@style/RtlOverlay.Widget.AppCompat.PopupMenuItem.InternalGroup"> |
34 |
|
35 |
<TextView |
36 |
android:id="@+id/title" |
37 |
android:layout_width="match_parent" |
38 |
android:layout_height="wrap_content" |
39 |
android:layout_alignParentTop="true" |
40 |
android:textAppearance="?attr/textAppearanceLargePopupMenu" |
41 |
android:singleLine="true" |
42 |
android:duplicateParentState="true" |
43 |
android:ellipsize="marquee" |
44 |
android:fadingEdge="horizontal" |
45 |
style="@style/RtlOverlay.Widget.AppCompat.PopupMenuItem.Text" /> |
46 |
|
47 |
<TextView |
48 |
android:id="@+id/shortcut" |
49 |
android:layout_width="wrap_content" |
50 |
android:layout_height="wrap_content" |
51 |
android:layout_below="@id/title" |
52 |
android:textAppearance="?attr/textAppearanceSmallPopupMenu" |
53 |
android:singleLine="true" |
54 |
android:duplicateParentState="true" |
55 |
style="@style/RtlOverlay.Widget.AppCompat.PopupMenuItem.Text" /> |
56 |
|
57 |
</RelativeLayout> |
58 |
|
59 |
<!-- Checkbox, and/or radio button will be inserted here. --> |
60 |
|
61 |
</android.support.v7.internal.view.menu.ListMenuItemView> |
62 |
<!-- From: file:/usr/local/google/buildbot/repo_clients/https___googleplex-android.googlesource.com_a_platform_manifest.git/lmp-mr1-supportlib-release/frameworks/support/v7/appcompat/res/layout/abc_popup_menu_item_layout.xml --><!-- From: file:/C:/Users/thn/AndroidStudioProjects/BarcodeSample/app/build/intermediates/exploded-aar/com.android.support/appcompat-v7/22.1.1/res/layout/abc_popup_menu_item_layout.xml --> |